Class: Juli::LineAbsyn::ArrayNode
- Defined in:
- lib/juli/line_parser.tab.rb
Instance Attribute Summary collapse
-
#array ⇒ Object
Returns the value of attribute array.
Instance Method Summary collapse
- #accept(visitor) ⇒ Object
- #add(child) ⇒ Object
-
#initialize ⇒ ArrayNode
constructor
A new instance of ArrayNode.
Constructor Details
#initialize ⇒ ArrayNode
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
#array ⇒ Object
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 |