Use better variable/method nameing

This commit is contained in:
Markus Schirp 2013-04-27 18:22:28 +02:00
parent 1ea05148f1
commit c0a329fa53

View file

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