Class: Juli::LineAbsyn::ArrayNode

Inherits:
Node
  • Object
show all
Defined in:
lib/juli/line_parser.tab.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeArrayNode

Returns a new instance of ArrayNode.



56
57
58
# File 'lib/juli/line_parser.tab.rb', line 56

def initialize
  @array      = Array.new
end

Instance Attribute Details

#arrayObject

Returns the value of attribute array.



54
55
56
# File 'lib/juli/line_parser.tab.rb', line 54

def array
  @array
end

Instance Method Details

#accept(visitor) ⇒ Object



65
66
67
# File 'lib/juli/line_parser.tab.rb', line 65

def accept(visitor)
  visitor.visit_array(self)
end

#add(child) ⇒ Object



60
61
62
63
# File 'lib/juli/line_parser.tab.rb', line 60

def add(child)
  @array << child
  self
end