Class: Ron::GraphEdge::BracketsKey

Inherits:
Ron::GraphEdge show all
Defined in:
lib/ron/graphedge.rb

Overview


Instance Attribute Summary

Attributes inherited from Ron::GraphEdge

#context, #index, #len

Instance Method Summary collapse

Methods inherited from Ron::GraphEdge

#call, #context_type, #initialize, #new_value

Constructor Details

This class inherits a constructor from Ron::GraphEdge

Instance Method Details

#old_valueObject



272
273
274
# File 'lib/ron/graphedge.rb', line 272

def old_value
  @index
end

#replace(*newkey) ⇒ Object



276
277
278
279
# File 'lib/ron/graphedge.rb', line 276

def replace(*newkey)
  newkey.empty? and newkey=[new_value]
  context[*newkey]=context.delete(*@index)
end