Class: Ron::GraphEdge::HashDefaultValue

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) ⇒ HashDefaultValue

Returns a new instance of HashDefaultValue.



329
330
331
# File 'lib/ron/graphedge.rb', line 329

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

Instance Method Details

#old_valueObject



332
333
334
# File 'lib/ron/graphedge.rb', line 332

def old_value
  context.default @index
end

#replace(newval = nil) ⇒ Object

Raises:

  • (TypeError)


336
337
338
# File 'lib/ron/graphedge.rb', line 336

def replace(newval=nil)
  raise TypeError
end