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

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

#valid?(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.

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

Parameters:

  • entry (Object)

    the entry to be checked

Returns:

  • (Boolean)

    true if the entry qualifies to be added to the cache

Raises:

  • (NotImplementedError)


73
74
75
# File 'lib/dm-core/support/ordered_set.rb', line 73

def valid?(entry)
  raise NotImplementedError, "#{self}#valid? must be implemented"
end