Do not pass method name to to_enum calls within #each
This commit is contained in:
parent
0b9b46d12f
commit
a3b9419494
2 changed files with 2 additions and 2 deletions
|
@ -30,7 +30,7 @@ module Mutant
|
|||
# @api private
|
||||
#
|
||||
def each(&block)
|
||||
return to_enum(__method__) unless block_given?
|
||||
return to_enum unless block_given?
|
||||
Mutator.build(node).each(&block)
|
||||
|
||||
self
|
||||
|
|
|
@ -48,7 +48,7 @@ module Mutant
|
|||
# @api private
|
||||
#
|
||||
def each(&block)
|
||||
return to_enum(__method__) unless block_given?
|
||||
return to_enum unless block_given?
|
||||
mutants(Generator.new(block))
|
||||
self
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue