Class: Array
Instance Method Summary
collapse
#<
#<=
#===, #old_triple_equal4Set
#to_bset
#**
#^
Instance Method Details
#&(item) ⇒ Object
732
733
734
735
736
737
|
# File 'lib/setfu.rb', line 732
def &(item)
return old_and_method4set(item) if (item.class==Array)
a = BitSet.new(self)
b = BitSet.new(item)
return a & b
end
|
#-(item) ⇒ Object
726
727
728
729
730
731
|
# File 'lib/setfu.rb', line 726
def -(item)
return old_subtract_method4set(item) if (item.class==Array)
a = BitSet.new(self)
b = BitSet.new(item)
return a - b
end
|
#old_and_method4set ⇒ Object
716
|
# File 'lib/setfu.rb', line 716
alias_method :old_and_method4set, :&
|
#old_or_method4set ⇒ Object
717
|
# File 'lib/setfu.rb', line 717
alias_method :old_or_method4set, :|
|
#old_subtract_method4set ⇒ Object
715
|
# File 'lib/setfu.rb', line 715
alias_method :old_subtract_method4set, :-
|
#|(item) ⇒ Object
738
739
740
741
742
743
|
# File 'lib/setfu.rb', line 738
def |(item)
return old_or_method4set(item) if (item.class==Array)
a = BitSet.new(self)
b = BitSet.new(item)
return a | b
end
|