Class: Mutant::Matcher::Scope
- Inherits:
-
Mutant::Matcher
- Object
- Mutant::Matcher
- Mutant::Matcher::Scope
- Defined in:
- lib/mutant/matcher/scope.rb
Overview
Matcher for specific namespace
Constant Summary collapse
- MATCHERS =
[ Matcher::Methods::Singleton, Matcher::Methods::Instance ].freeze
Instance Method Summary collapse
-
#each(&block) ⇒ self, Enumerator<Subject>
private
Enumerate subjects.
Methods inherited from Mutant::Matcher
Instance Method Details
#each(&block) ⇒ self, Enumerator<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.
Enumerate subjects
21 22 23 24 25 26 27 28 29 |
# File 'lib/mutant/matcher/scope.rb', line 21 def each(&block) return to_enum unless block_given? MATCHERS.each do |matcher| matcher.new(env, scope).each(&block) end self end |