Class DataMapper::DescendantSet
In: lib/dm-core/support/descendant_set.rb
Parent: Object

Methods

<<   delete   each   empty?   initialize_copy   new  

Included Modules

Enumerable

Public Class methods

Initialize a DescendantSet instance

@param [to_ary] descendants

  initialize with the descendants

@return [undefined]

@api private

Public Instance methods

Add a descendant

@param [Module] descendant

@return [DescendantSet]

  self

@api private

Remove a descendant

Also removes from all descendants

@param [Module] descendant

@return [DescendantSet]

  self

@api private

Iterate over each descendant

@yield [descendant] @yieldparam [Module] descendant

@return [DescendantSet]

  self

@api private

Test if there are any descendants

@return [Boolean]

@api private

Copy a DescendantSet instance

@param [DescendantSet] original

  the original descendants

@return [undefined]

@api private

[Validate]