зеркало из https://github.com/github/ruby.git
Added missing block arg
This commit is contained in:
Родитель
59db92a1a1
Коммит
46ee05f05a
|
@ -551,7 +551,7 @@ class Set
|
||||||
# Deletes every element of the set for which block evaluates to
|
# Deletes every element of the set for which block evaluates to
|
||||||
# false, and returns self. Returns an enumerator if no block is
|
# false, and returns self. Returns an enumerator if no block is
|
||||||
# given.
|
# given.
|
||||||
def keep_if
|
def keep_if(&block)
|
||||||
block_given? or return enum_for(__method__) { size }
|
block_given? or return enum_for(__method__) { size }
|
||||||
# Instead of directly using @hash.keep_if, perform enumeration
|
# Instead of directly using @hash.keep_if, perform enumeration
|
||||||
# using self.each that subclasses may override.
|
# using self.each that subclasses may override.
|
||||||
|
|
Загрузка…
Ссылка в новой задаче