Method: MemoryModel::Collection::Index#read

Defined in:
lib/memory_model/collection/index.rb

#read(key) ⇒ Object

‘read` should find a record in the collection by its indexed_value, remove it, and add with the new value.

Raises:

  • (NotImplementedError)


55
56
57
# File 'lib/memory_model/collection/index.rb', line 55

def read(key)
  raise NotImplementedError, "#{__method__} has not been implemented for this #{name} index"
end