Method: Cantor::AbsoluteSet#replace

Defined in:
lib/cantor/absolute_set.rb

#replace(other) ⇒ Object



78
79
80
81
82
83
84
# File 'lib/cantor/absolute_set.rb', line 78

def replace(other)
  if other.is_a?(AbstractSet)
    other
  else
    copy(:mask => as_mask(other, true))
  end
end