Class: Mutant::Matcher::Method
- Inherits:
-
Mutant::Matcher
- Object
- Mutant::Matcher
- Mutant::Matcher::Method
- Includes:
- AbstractType, Adamantium::Flat
- Defined in:
- lib/mutant/matcher/method.rb,
lib/mutant/matcher/method/instance.rb,
lib/mutant/matcher/method/singleton.rb
Overview
Abstract base class for method matchers
Defined Under Namespace
Classes: Evaluator, Instance, Singleton
Constant Summary collapse
- BLACKLIST =
Methods within rbx kernel directory are precompiled and their source cannot be accessed via reading source location. Same for methods created by eval.
%r{\A(kernel/|\(eval\)\z)}.freeze
- SOURCE_LOCATION_WARNING_FORMAT =
'%s does not have a valid source location, unable to emit subject'.freeze
- CLOSURE_WARNING_FORMAT =
'%s is dynamically defined in a closure, unable to emit subject'.freeze
Instance Method Summary collapse
-
#call(env) ⇒ Enumerable<Subject>
private
Matched subjects.
Instance Method Details
#call(env) ⇒ Enumerable<Subject>
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Matched subjects
26 27 28 |
# File 'lib/mutant/matcher/method.rb', line 26 def call(env) evaluator.call(scope, target_method, env) end |