Parent

Methods

Class/Module Index [+]

Quicksearch

DataMapper::OrderedSet::Cache

The default cache used by {OrderedSet}

Uses a {Hash} as internal storage and enforces set semantics by calling eql? and hash on the set’s entries.

@api private

Public Instance Methods

key_for(entry) click to toggle source

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

@param [Object] entry

the entry to get the key for

@return [Object]

the passed in entry

@api private

# File lib/dm-core/support/ordered_set.rb, line 186
def key_for(entry)
  entry
end
valid?(entry) click to toggle source

Tests if the given entry qualifies to be added to the cache

@param [Object] entry

the entry to be checked

@return [true] true

@api private

# File lib/dm-core/support/ordered_set.rb, line 173
def valid?(entry)
  true
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.