Method: DataMapper::OrderedSet::Cache#key_for

Defined in:
lib/dm-core/support/ordered_set.rb

#key_for(entry) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Given an entry, return the key to be used in the cache

Parameters:

  • entry (Object)

    the entry to get the key for

Returns:

  • (Object)

    the passed in entry



186
187
188
# File 'lib/dm-core/support/ordered_set.rb', line 186

def key_for(entry)
  entry
end