free_mutant/lib/mutant/matcher/method/singleton.rb
Markus Schirp df6ccafeab Add method matcher infrastructure
Needs more specs for sure. Especially edge cases.
2012-07-23 22:54:35 +02:00

17 lines
301 B
Ruby

module Mutant
class Matcher
class Method
# A singleton method filter
class Singleton < Method
private
def method
constant.method(method_name)
end
def node_class
Rubinius::AST::DefineSingleton
end
end
end
end
end