From f2bdd33ef00664771be40bdad8dbdaedf2fe11c1 Mon Sep 17 00:00:00 2001 From: Conrad Irwin Date: Wed, 27 Mar 2013 23:39:44 -0700 Subject: [PATCH] Rename Pry::Commands::Edit::MethodPatcher to Pry::Method::Patcher --- lib/pry/commands/edit.rb | 2 +- lib/pry/method.rb | 1 + lib/pry/method/patcher.rb | 4 ++-- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/lib/pry/commands/edit.rb b/lib/pry/commands/edit.rb index bddecaa5..c4fb729c 100644 --- a/lib/pry/commands/edit.rb +++ b/lib/pry/commands/edit.rb @@ -83,7 +83,7 @@ class Pry 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 + Method::Patcher.new(_pry_, code_object).perform_patch else raise NotImplementedError, "Cannot yet patch #{code_object} objects!" end diff --git a/lib/pry/method.rb b/lib/pry/method.rb index 1f267f5e..42749fb6 100644 --- a/lib/pry/method.rb +++ b/lib/pry/method.rb @@ -19,6 +19,7 @@ class Pry class Method require 'pry/method/weird_method_locator' require 'pry/method/disowned' + require 'pry/method/patcher' extend Helpers::BaseHelpers include Helpers::BaseHelpers diff --git a/lib/pry/method/patcher.rb b/lib/pry/method/patcher.rb index 4701fe57..bb87d667 100644 --- a/lib/pry/method/patcher.rb +++ b/lib/pry/method/patcher.rb @@ -1,6 +1,6 @@ class Pry - class Command::Edit - class MethodPatcher + class Method + class Patcher attr_accessor :_pry_ attr_accessor :code_object