Do not pass method name to to_enum calls within #each

This commit is contained in:
Markus Schirp 2012-07-29 18:03:44 +02:00
parent 0b9b46d12f
commit a3b9419494
2 changed files with 2 additions and 2 deletions

View file

@ -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

View file

@ -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