Class: Findyml::IndexNode
Instance Attribute Summary
Attributes inherited from KeyNode
Instance Method Summary collapse
-
#initialize(node, index) ⇒ IndexNode
constructor
A new instance of IndexNode.
- #to_s ⇒ Object
Methods inherited from KeyNode
Constructor Details
#initialize(node, index) ⇒ IndexNode
Returns a new instance of IndexNode.
70 71 72 73 |
# File 'lib/findyml.rb', line 70 def initialize(node, index) super(node) @index = index end |
Instance Method Details
#to_s ⇒ Object
75 76 77 |
# File 'lib/findyml.rb', line 75 def to_s @index.to_s end |