Added missing block arg
This commit is contained in:
parent
59db92a1a1
commit
46ee05f05a
@ -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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user