= private = protected
merge(enum)
Merges the elements of the given enumerable object to the set and returns self.
# File lib/set.rb, line 259 def merge(enum) if enum.is_a?(Set) @hash.update(enum.instance_eval { @hash }) else enum.is_a?(Enumerable) or raise ArgumentError, "value must be enumerable" enum.each { |o| add(o) } end self end