# File lib/pry/commands/edit/method_patcher.rb, line 7 def initialize(_pry_, code_object) @_pry_ = _pry_ @code_object = code_object end
perform the patch
# File lib/pry/commands/edit/method_patcher.rb, line 13 def perform_patch if code_object.alias? with_method_transaction do _pry_.evaluate_ruby patched_code end else _pry_.evaluate_ruby patched_code end end