Method: Pry::Method#redefine

Defined in:
lib/pry/method.rb

#redefine(source) ⇒ Object

Update the live copy of the method’s source.



314
315
316
317
# File 'lib/pry/method.rb', line 314

def redefine(source)
  Patcher.new(self).patch_in_ram source
  Pry::Method(owner.instance_method(name))
end