Method: LazyGraph::StackPointer#to_s
- Defined in:
- lib/lazy_graph/stack_pointer.rb
#to_s ⇒ Object
Returns a string representation of the stacking path of keys up to this pointer.
68 69 70 71 72 73 74 |
# File 'lib/lazy_graph/stack_pointer.rb', line 68 def to_s if parent "#{parent}#{key.to_s =~ /\d+/ ? "[#{key}]" : ".#{key}"}" else key.to_s end end |