Class: Mutant::Mutation::Filter::Whitelist
- Inherits:
-
Mutant::Mutation::Filter
- Object
- Mutant::Mutation::Filter
- Mutant::Mutation::Filter::Whitelist
- Includes:
- Adamantium::Flat
- Defined in:
- lib/mutant/mutation/filter/whitelist.rb
Overview
Whiltelist filter
Instance Attribute Summary collapse
-
#whitelist ⇒ Enumerable<Filter>
readonly
private
Return whitelist.
Instance Method Summary collapse
-
#match?(mutation) ⇒ true, false
private
Test for match.
Methods inherited from Mutant::Mutation::Filter
Instance Attribute Details
#whitelist ⇒ Enumerable<Filter> (readonly)
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 whitelist
31 32 33 |
# File 'lib/mutant/mutation/filter/whitelist.rb', line 31 def whitelist @whitelist end |
Instance Method Details
#match?(mutation) ⇒ 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.
Test for match
21 22 23 |
# File 'lib/mutant/mutation/filter/whitelist.rb', line 21 def match?(mutation) @whitelist.any? { |filter| filter.match?(mutation) } end |