Class: Mutant::Matcher
- Inherits:
-
Object
- Object
- Mutant::Matcher
- Includes:
- AbstractType, Adamantium::Flat, Enumerable
- Defined in:
- lib/mutant/matcher.rb,
lib/mutant/matcher/null.rb,
lib/mutant/matcher/chain.rb,
lib/mutant/matcher/scope.rb,
lib/mutant/matcher/filter.rb,
lib/mutant/matcher/method.rb,
lib/mutant/matcher/methods.rb,
lib/mutant/matcher/namespace.rb,
lib/mutant/matcher/method/finder.rb,
lib/mutant/matcher/method/instance.rb,
lib/mutant/matcher/method/singleton.rb
Overview
Abstract matcher to find subjects to mutate
Defined Under Namespace
Classes: Chain, Filter, Method, Methods, Namespace, Null, Scope
Class Method Summary collapse
-
.build(*arguments) ⇒ undefined
private
Default matcher build implementation.
-
.each(cache, input, &block) ⇒ self, Enumerable<Subject>
private
Enumerate subjects.
Instance Method Summary collapse
-
#each ⇒ self, Enumerabe<Subject>
private
Enumerate subjects.
-
#identification ⇒ String
private
Return identification.
Class Method Details
.build(*arguments) ⇒ undefined
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.
Default matcher build implementation
37 38 39 |
# File 'lib/mutant/matcher.rb', line 37 def self.build(*arguments) new(*arguments) end |
.each(cache, input, &block) ⇒ self, 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.
Enumerate subjects
20 21 22 23 24 25 26 |
# File 'lib/mutant/matcher.rb', line 20 def self.each(cache, input, &block) return to_enum(__method__, cache, input) unless block_given? build(cache, input).each(&block) self end |
Instance Method Details
#each ⇒ self, Enumerabe<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
51 |
# File 'lib/mutant/matcher.rb', line 51 abstract_method :each |
#identification ⇒ String
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.
Return identification
59 |
# File 'lib/mutant/matcher.rb', line 59 abstract_method :identification |