Fix style in Mutant::Matcher::Method::Instance

This commit is contained in:
Markus Schirp 2013-07-28 20:00:53 +02:00
parent 8a9828762d
commit 83f263deb8

View file

@ -16,7 +16,8 @@ module Mutant
# @api private
#
def self.build(cache, scope, method)
if scope.ancestors.include?(::Adamantium) and scope.memoized?(method.name)
name = method.name
if scope.ancestors.include?(::Adamantium) and scope.memoized?(name)
return Memoized.new(cache, scope, method)
end
super