Class: Ron::GraphEdge::ObjectIvarValue

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



377
378
379
# File 'lib/ron/graphedge.rb', line 377

def old_value
  context.instance_variable_get @index
end

#replace(newval = new_value) ⇒ Object



381
382
383
# File 'lib/ron/graphedge.rb', line 381

def replace(newval=new_value)
  context.instance_variable_set(@index, newval)
end