Method: DataMapper::OrderedSet::Cache::API#clear

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

#clearAPI

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.

Removes all entries and returns self

Returns:

  • (API)

    self



156
157
158
159
# File 'lib/dm-core/support/ordered_set.rb', line 156

def clear
  @cache.clear
  self
end