Method: Origin::Extensions::Array#__intersect__

Defined in:
lib/origin/extensions/array.rb

#__intersect__(object) ⇒ Object

Combine the two objects using an intersection strategy.

Examples:

Interset with the object.

[ 1, 2 ].__intersect__(3)

Parameters:

  • object (Object)

    The object to intersect with.

Returns:

  • (Object)

    The result of the intersection.

Since:

  • 1.0.0



94
95
96
# File 'lib/origin/extensions/array.rb', line 94

def __intersect__(object)
  object.__intersect_from_array__(self)
end