Class: CFG::ListNode
Instance Attribute Summary collapse
-
#elements ⇒ Object
readonly
Returns the value of attribute elements.
Attributes inherited from ASTNode
Instance Method Summary collapse
-
#initialize(elements) ⇒ ListNode
constructor
A new instance of ListNode.
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
#elements ⇒ Object (readonly)
Returns the value of attribute elements.
825 826 827 |
# File 'lib/CFG/config.rb', line 825 def elements @elements end |