merge(enum)
public
Merges the elements of the given enumerable object to the set and returns
self.
Show source
def merge(enum)
if enum.instance_of?(self.class)
@hash.update(enum.instance_variable_get(:@hash))
else
do_with_enum(enum) { |o| add(o) }
end
self
end