class Fictive::Syntax::Element
Attributes
children[RW]
text[R]
type[R]
Public Class Methods
new(type, text = nil)
click to toggle source
# File lib/fictive/syntax.rb, line 9 def initialize(type, text = nil) @type = type @text = text @children = [] end
Public Instance Methods
empty?()
click to toggle source
# File lib/fictive/syntax.rb, line 15 def empty? @children.empty? end