Module: SetFuMixinBinaryIntersectionOperator

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

Instance Method Summary collapse

Instance Method Details

#**(item) ⇒ Object

intersection test



379
380
381
382
383
# File 'lib/setfu.rb', line 379

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