Class: Mutant::Mutator::Node::Regexp::CharacterType Private
- Inherits:
-
Mutant::Mutator::Node
- Object
- Mutant::Mutator
- Mutant::Mutator::Node
- Mutant::Mutator::Node::Regexp::CharacterType
- Defined in:
- lib/mutant/mutator/node/regexp/character_type.rb
Overview
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Character type mutator
Constant Summary collapse
- MAP =
This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.
IceNine.deep_freeze(map.merge(map.invert))
Constants inherited from Mutant::Mutator::Node
Constants included from AST::Nodes
AST::Nodes::N_EMPTY, AST::Nodes::N_EMPTY_SUPER, AST::Nodes::N_FALSE, AST::Nodes::N_INFINITY, AST::Nodes::N_NAN, AST::Nodes::N_NEGATIVE_INFINITY, AST::Nodes::N_NIL, AST::Nodes::N_RAISE, AST::Nodes::N_SELF, AST::Nodes::N_TRUE, AST::Nodes::N_ZSUPER
Constants inherited from Mutant::Mutator
Instance Attribute Summary
Attributes inherited from Mutant::Mutator
Instance Method Summary collapse
-
#dispatch ⇒ undefined
private
Mutate to invert character type.
Methods included from AST::NamedChildren
Methods inherited from Mutant::Mutator
Instance Method Details
#dispatch ⇒ 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.
Mutate to invert character type
25 26 27 |
# File 'lib/mutant/mutator/node/regexp/character_type.rb', line 25 def dispatch emit(s(MAP.fetch(node.type))) end |