Use better variable/method nameing
This commit is contained in:
parent
1ea05148f1
commit
c0a329fa53
1 changed files with 5 additions and 5 deletions
|
@ -24,7 +24,7 @@ module Mutant
|
||||||
# @api private
|
# @api private
|
||||||
#
|
#
|
||||||
def matcher
|
def matcher
|
||||||
scope_matcher.matcher.new(scope, method)
|
methods_matcher.matcher.new(scope, method)
|
||||||
end
|
end
|
||||||
memoize :matcher
|
memoize :matcher
|
||||||
|
|
||||||
|
@ -37,9 +37,9 @@ module Mutant
|
||||||
# @api private
|
# @api private
|
||||||
#
|
#
|
||||||
def method
|
def method
|
||||||
scope_matcher.methods.detect do |method|
|
methods_matcher.methods.detect do |method|
|
||||||
method.name == method_name
|
method.name == method_name
|
||||||
end or raise("Cannot find method #{method_name} for #{scope}")
|
end or raise("Cannot find method #{identification}")
|
||||||
end
|
end
|
||||||
memoize :method, :freezer => :noop
|
memoize :method, :freezer => :noop
|
||||||
|
|
||||||
|
@ -89,10 +89,10 @@ module Mutant
|
||||||
#
|
#
|
||||||
# @api private
|
# @api private
|
||||||
#
|
#
|
||||||
def scope_matcher
|
def methods_matcher
|
||||||
TABLE.fetch(scope_symbol).new(scope)
|
TABLE.fetch(scope_symbol).new(scope)
|
||||||
end
|
end
|
||||||
memoize :scope_matcher
|
memoize :methods_matcher
|
||||||
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Reference in a new issue