From 5d5ff6e5eda887b39691db4db58ac1c2c3a1f8d9 Mon Sep 17 00:00:00 2001 From: Akinori MUSHA Date: Fri, 24 Feb 2023 17:37:00 +0900 Subject: [ruby/set] Set#merge does not take keyword arguments as a Hash https://github.com/ruby/set/commit/ca1c9532a9 --- lib/set.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/set.rb') 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)) -- cgit v1.2.3