= private = protected
merge(enum)
Merges the elements of the given enumerable object to the set and returns self.
# File lib/set.rb, line 306 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