Class: CFG::ListNode

Inherits:
ASTNode show all
Defined in:
lib/CFG/config.rb

Instance Attribute Summary collapse

Attributes inherited from ASTNode

#end, #kind, #start

Instance Method Summary collapse

Constructor Details

#initialize(elements) ⇒ ListNode

Returns a new instance of ListNode.



827
828
829
830
# File 'lib/CFG/config.rb', line 827

def initialize(elements)
  super(:LEFT_BRACKET)
  @elements = elements
end

Instance Attribute Details

#elementsObject (readonly)

Returns the value of attribute elements.



825
826
827
# File 'lib/CFG/config.rb', line 825

def elements
  @elements
end