Class: Mutant::Matcher::Method Private
- 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
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Abstract base class for method matchers
Defined Under Namespace
Classes: Evaluator, Instance, Singleton
Constant Summary collapse
- BLACKLIST =
This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.
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 =
This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.
'%s does not have a valid source location, unable to emit subject'.freeze
- CLOSURE_WARNING_FORMAT =
This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.
'%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
24 25 26 |
# File 'lib/mutant/matcher/method.rb', line 24 def call(env) evaluator.call(scope, target_method, env) end |