Method: Mutant::Mutation::Operators.parse
- Defined in:
- lib/mutant/mutation/operators.rb
.parse(value) ⇒ 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.
74 75 76 77 78 79 80 81 82 |
# File 'lib/mutant/mutation/operators.rb', line 74 def self.parse(value) klass = [Light, Full].detect { |candidate| candidate.operators_name.to_s.eql?(value) } if klass Either::Right.new(klass.new) else Either::Left.new("Unknown operators: #{value}") end end |