Skip to content

End of Life Ruby 3.0 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →

instance method

Set#merge

merge(enum)

Merges the elements of the given enumerable object to the set and returns self.

See also #member? #proper_subset? #map! #proper_superset? also in 4.1 · 4.0 · 3.4 · 3.3 · 3.2 · 3.1