Class: Mutant::Matcher::Methods
- Inherits:
-
Mutant::Matcher
- Object
- Mutant::Matcher
- Mutant::Matcher::Methods
- Includes:
- AbstractType
- Defined in:
- lib/mutant/matcher/methods.rb
Overview
Abstract base class for matcher that returns method subjects from scope
Defined Under Namespace
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
16 17 18 19 20 21 22 |
# File 'lib/mutant/matcher/methods.rb', line 16 def each(&block) return to_enum unless block_given? subjects.each(&block) self end |