Class: Mutant::Mutator::Node::Define::Instance Private
- Inherits:
-
Mutant::Mutator::Node::Define
- Object
- Mutant::Mutator
- Mutant::Mutator::Node
- Mutant::Mutator::Node::Define
- Mutant::Mutator::Node::Define::Instance
- Defined in:
- lib/mutant/mutator/node/define.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.
Mutator for instance method defines
Constant Summary
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
Emit mutations.
-
#emit_remove_method ⇒ undefined
private
Remove an instance method.
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.
Emit mutations
66 67 68 69 |
# File 'lib/mutant/mutator/node/define.rb', line 66 def dispatch super() emit_remove_method end |
#emit_remove_method ⇒ 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.
Remove an instance method
74 75 76 |
# File 'lib/mutant/mutator/node/define.rb', line 74 def emit_remove_method emit(s(:send, nil, :remove_method, s(:sym, name))) end |