An {OrderedSet::Cache::API} implementation that establishes set semantics based on the name of its entries. The cache uses the entries’ names as cache key and refuses to add entries that don’t respond_to?(:name).
@api private
Given an entry, return the key to be used in the cache
@param [#] entry
the entry to get the key for
@return [#, nil]
the entry's name or nil if the entry isn't #valid?
@api private
# File lib/dm-core/support/subject_set.rb, line 76 76: def key_for(entry) 77: valid?(entry) ? entry.name : nil 78: end
Tests if the given entry qualifies to be added to the cache
@param [#] entry
the entry to be checked
@return [Boolean]
true if the entry respond_to?(:name)
@api private
# File lib/dm-core/support/subject_set.rb, line 63 63: def valid?(entry) 64: entry.respond_to?(:name) 65: end
Disabled; run with --debug to generate this.
Generated with the Darkfish Rdoc Generator 1.1.6.