Class: Ron::GraphEdge::HashDefaultKey

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

Returns a new instance of HashDefaultKey.



345
346
347
# File 'lib/ron/graphedge.rb', line 345

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

Instance Method Details

#old_valueObject



348
349
350
# File 'lib/ron/graphedge.rb', line 348

def old_value
  nil
end

#replace(newval = nil) ⇒ Object

Raises:

  • (TypeError)


352
353
354
# File 'lib/ron/graphedge.rb', line 352

def replace(newval=nil)
  raise TypeError
end