Class: Array
Instance Method Summary
collapse
#<
#<=
#===, #old_triple_equal4Set
#to_bset
#**
#^
Instance Method Details
#&(item) ⇒ Object
751
752
753
754
755
756
|
# File 'lib/setfu.rb', line 751
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
745
746
747
748
749
750
|
# File 'lib/setfu.rb', line 745
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
735
|
# File 'lib/setfu.rb', line 735
alias_method :old_and_method4set, :&
|
#old_or_method4set ⇒ Object
736
|
# File 'lib/setfu.rb', line 736
alias_method :old_or_method4set, :|
|
#old_subtract_method4set ⇒ Object
734
|
# File 'lib/setfu.rb', line 734
alias_method :old_subtract_method4set, :-
|
#|(item) ⇒ Object
757
758
759
760
761
762
|
# File 'lib/setfu.rb', line 757
def |(item)
return old_or_method4set(item) if (item.class==Array)
a = BitSet.new(self)
b = BitSet.new(item)
return a | b
end
|