Class: CFG::MappingNode

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) ⇒ MappingNode

Returns a new instance of MappingNode.



836
837
838
839
# File 'lib/CFG/config.rb', line 836

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

Instance Attribute Details

#elementsObject (readonly)

Returns the value of attribute elements.



834
835
836
# File 'lib/CFG/config.rb', line 834

def elements
  @elements
end