Method: DataMapper::Collection#intersection

Defined in:
lib/dm-core/collection.rb

#intersection(other) ⇒ Collection Also known as: &

Return the intersection with another collection

Parameters:

Returns:

  • (Collection)

    the intersection of the collection and other



108
109
110
# File 'lib/dm-core/collection.rb', line 108

def intersection(other)
  set_operation(:&, other)
end