Method: Cantor::AbsoluteSet#==

Defined in:
lib/cantor/absolute_set.rb

#==(other) ⇒ Object



196
197
198
199
200
201
202
203
204
# File 'lib/cantor/absolute_set.rb', line 196

def ==(other)
  if other.is_a?(AbsoluteSet) and other.universe.eql?(@universe)
    @mask == other.mask
  elsif other.is_a?(AbstractSet) and other.infinite?
    false
  elsif other.is_a?(Enumerable)
    @mask == as_mask(other, false) and size == other.size
  end
end