Class: Mutant::Mutator::Util
- Inherits:
-
Mutant::Mutator
- Object
- Mutant::Mutator
- Mutant::Mutator::Util
- Defined in:
- lib/mutant/mutator/util.rb
Overview
Namespace for utility mutators
Direct Known Subclasses
Defined Under Namespace
Classes: Array
Instance Attribute Summary
Attributes inherited from Mutant::Mutator
Class Method Summary collapse
-
.each(object, &block) ⇒ Object
private
Run ulitity mutator.
Instance Method Summary collapse
-
#new?(generated) ⇒ true, false
Test if mutation is new.
Class Method Details
.each(object, &block) ⇒ Object
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.
Run ulitity mutator
12 13 14 15 16 17 18 |
# File 'lib/mutant/mutator/util.rb', line 12 def self.each(object, &block) return to_enum(__method__, object) unless block_given? new(object, block) self end |
Instance Method Details
#new?(generated) ⇒ true, false
Test if mutation is new
30 31 32 |
# File 'lib/mutant/mutator/util.rb', line 30 def new?(generated) input != generated end |