From 46ee05f05a01b528ba3fc1cb13b265f2dc9ef749 Mon Sep 17 00:00:00 2001 From: Hiroshi SHIBATA Date: Thu, 19 Sep 2024 16:23:08 +0900 Subject: [PATCH] Added missing block arg --- lib/set.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/set.rb b/lib/set.rb index 46c212beae..8ac9ce45b1 100644 --- a/lib/set.rb +++ b/lib/set.rb @@ -551,7 +551,7 @@ class Set # Deletes every element of the set for which block evaluates to # false, and returns self. Returns an enumerator if no block is # given. - def keep_if + def keep_if(&block) block_given? or return enum_for(__method__) { size } # Instead of directly using @hash.keep_if, perform enumeration # using self.each that subclasses may override.