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.



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

def initialize(node, index)
  super(node)
  @index = index
end

Instance Method Details

#to_sObject



75
76
77
# File 'lib/findyml.rb', line 75

def to_s
  @index.to_s
end