Fix style in Mutant::Matcher::Method::Instance
This commit is contained in:
parent
8a9828762d
commit
83f263deb8
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue