Method: DataMapper::OrderedSet::Cache::API#include?

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

#include?(entry) ⇒ Boolean

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.

Check if the entry exists in the cache

Parameters:

  • entry (Object)

    the entry to test for

Returns:

  • (Boolean)

    true if entry is included in the cache



99
100
101
# File 'lib/dm-core/support/ordered_set.rb', line 99

def include?(entry)
  @cache.has_key?(key_for(entry))
end