Class: Ron::GraphEdge::TopLevel

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, #new_value

Constructor Details

#initialize(context, index = nil, len = 1, &newval_code) ⇒ TopLevel

Returns a new instance of TopLevel.



409
410
411
# File 'lib/ron/graphedge.rb', line 409

def initialize(context,index=nil,len=1,&newval_code)
  super
end

Instance Method Details

#old_valueObject



413
414
415
# File 'lib/ron/graphedge.rb', line 413

def old_value
  context
end

#replace(newval = new_value) ⇒ Object

Raises:



417
418
419
420
# File 'lib/ron/graphedge.rb', line 417

def replace(newval=new_value)
  #can't really replace values in toplevel context...???
  raise ReplaceAtTopLevel
end