Class: Mutant::Mutation::Filter
- Inherits:
-
Object
- Object
- Mutant::Mutation::Filter
- Extended by:
- DescendantsTracker
- Includes:
- AbstractType, Adamantium::Flat
- Defined in:
- lib/mutant/mutation/filter.rb,
lib/mutant/mutation/filter/code.rb,
lib/mutant/mutation/filter/regexp.rb,
lib/mutant/mutation/filter/whitelist.rb
Overview
Abstract filter for mutations
Defined Under Namespace
Classes: Code, Regexp, Whitelist
Class Method Summary collapse
-
.build(notation) ⇒ Filter?
private
Build filter from string.
-
.handle(notation) ⇒ nil
private
Return filter for handle.
Instance Method Summary collapse
-
#match? ⇒ true, false
private
Check for match.
Class Method Details
.build(notation) ⇒ Filter?
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.
Build filter from string
34 35 36 37 38 39 40 41 |
# File 'lib/mutant/mutation/filter.rb', line 34 def self.build(notation) descendants.each do |descendant| filter = descendant.handle(notation) return filter if filter end nil end |
.handle(notation) ⇒ nil
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 filter for handle
52 53 54 |
# File 'lib/mutant/mutation/filter.rb', line 52 def self.handle(notation) nil end |
Instance Method Details
#match? ⇒ true, false
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.
Check for match
20 |
# File 'lib/mutant/mutation/filter.rb', line 20 abstract_method :match? |