Method: Mutant::Subject::Method::Instance#prepare

Defined in:
lib/mutant/subject/method/instance.rb

#prepareself

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

Returns:

  • (self)


15
16
17
18
# File 'lib/mutant/subject/method/instance.rb', line 15

def prepare
  scope.__send__(:undef_method, name)
  self
end