Class: Mutant::Matcher::Scope Private
- Inherits:
-
Mutant::Matcher
- Object
- Mutant::Matcher
- Mutant::Matcher::Scope
- Defined in:
- lib/mutant/matcher/scope.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.
Matcher expanding Mutant::Scope objects into method matches at singleton or instance level
If we ever get other subjects than methods, its likely the place to hook in custom matchers. In that case the scope matchers to expand should be passed as arguments to the constructor.
Constant Summary collapse
- MATCHERS =
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.
[ Matcher::Methods::Singleton, Matcher::Methods::Instance ].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/scope.rb', line 24 def call(env) Chain.new(effective_matchers).call(env) end |