Module: SetFuMixinBinaryIntersectionOperator

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

Instance Method Summary collapse

Instance Method Details

#**(item) ⇒ Object

intersection test



1101
1102
1103
1104
1105
# File 'lib/setfu.rb', line 1101

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