class Pry::Command::Edit

def apply_runtime_patch

def apply_runtime_patch
  if patch_exception?
    ExceptionPatcher.new(_pry_, state, file_and_line_for_current_exception).perform_patch
  else
    if code_object.is_a?(Pry::Method)
      MethodPatcher.new(_pry_, code_object).perform_patch
    else
      raise NotImplementedError, "Cannot yet patch #{code_object} objects!"
    end
  end
end