diff options
author | Akinori MUSHA <[email protected]> | 2023-02-24 17:37:00 +0900 |
---|---|---|
committer | git <[email protected]> | 2023-02-24 11:48:08 +0000 |
commit | 5d5ff6e5eda887b39691db4db58ac1c2c3a1f8d9 (patch) | |
tree | 34faf437b3fe0ff1d4ef3e576d37b20399591640 /lib/set.rb | |
parent | 454ac4cbb22fdae44a75cef1412693e4fb526630 (diff) |
[ruby/set] Set#merge does not take keyword arguments as a Hash
https://github.com/ruby/set/commit/ca1c9532a9
Diffstat (limited to 'lib/set.rb')
-rw-r--r-- | lib/set.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/set.rb b/lib/set.rb index 9140d024cf..95dd9217b1 100644 --- a/lib/set.rb +++ b/lib/set.rb @@ -598,7 +598,7 @@ class Set # Merges the elements of the given enumerable objects to the set and # returns self. - def merge(*enums) + def merge(*enums, **nil) enums.each do |enum| if enum.instance_of?(self.class) @hash.update(enum.instance_variable_get(:@hash)) |