Module: SetFuMixinBinaryIntersectionOperator

Included in:
Array, Range, String
Defined in:
lib/setfu.rb

Instance Method Summary collapse

Instance Method Details

#**(item) ⇒ Object

intersection test



558
559
560
561
562
# File 'lib/setfu.rb', line 558

def **(item)  # intersection test
  a = Set.new(self)
  b = Set.new(item)
  return a ** b
end