Cleanup method matcher

This commit is contained in:
Markus Schirp 2013-06-15 17:14:33 +02:00
parent 71f0c108f9
commit 6673cec705

View file

@ -73,11 +73,10 @@ module Mutant
# @api private
#
def candidate_names
object = candidate_scope
names =
object.public_instance_methods(false) +
object.private_instance_methods(false) +
object.protected_instance_methods(false)
candidate_scope.public_instance_methods(false) +
candidate_scope.private_instance_methods(false) +
candidate_scope.protected_instance_methods(false)
names.sort
end