Method: DataMapper::DescendantSet#clear

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

#clearDescendantSet

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:



84
85
86
# File 'lib/dm-core/support/descendant_set.rb', line 84

def clear
  @descendants.clear
end