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.
65 66 67 68 |
# File 'lib/findyml.rb', line 65 def initialize(node, index) super(node) @index = index end |
Instance Method Details
#to_s ⇒ Object
70 71 72 |
# File 'lib/findyml.rb', line 70 def to_s @index.to_s end |