Class: Ron::GraphEdge::HashValue

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



306
307
308
# File 'lib/ron/graphedge.rb', line 306

def old_value
  context[@index]
end

#replace(newval = new_value) ⇒ Object



310
311
312
# File 'lib/ron/graphedge.rb', line 310

def replace(newval=new_value)
  context[@index]=newval
end