Class: Mutant::Subject::Method::Metaclass Private
- Inherits:
-
Mutant::Subject::Method
- Object
- Mutant::Subject
- Mutant::Subject::Method
- Mutant::Subject::Method::Metaclass
- Includes:
- AST::Sexp
- Defined in:
- lib/mutant/subject/method/metaclass.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.
Singleton method defined using metaclass syntax (class << self; def foo; end; end)
Constant Summary collapse
- NAME_INDEX =
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.
0
- SYMBOL =
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.
'.'
Instance Method Summary collapse
-
#prepare ⇒ self
private
Prepare subject for mutation insertion.
Methods inherited from Mutant::Subject::Method
#expression, #match_expressions, #name
Methods inherited from Mutant::Subject
#expression, #identification, #inline_disabled?, #match_expressions, #mutations, #post_insert, #source, #source_line, #source_lines, #source_path
Instance Method Details
#prepare ⇒ self
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.
Prepare subject for mutation insertion
17 18 19 20 |
# File 'lib/mutant/subject/method/metaclass.rb', line 17 def prepare scope.raw.singleton_class.undef_method(name) self end |