Class: Findyml::IndexNode

Inherits:
KeyNode
  • Object
show all
Defined in:
lib/findyml.rb

Instance Attribute Summary

Attributes inherited from KeyNode

#node

Instance Method Summary collapse

Methods inherited from KeyNode

#==, #hash, #inspect, #line

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_sObject



70
71
72
# File 'lib/findyml.rb', line 70

def to_s
  @index.to_s
end