summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorConrad Irwin <conrad.irwin@gmail.com>2013-03-27 23:39:44 -0700
committerConrad Irwin <conrad.irwin@gmail.com>2013-03-27 23:39:44 -0700
commitf2bdd33ef00664771be40bdad8dbdaedf2fe11c1 (patch)
treec03d91a7e196c6f8706582e1e09b568b0d5d1ac6
parenta7c85d7882955a5ffd15837cab0905dff3941ba7 (diff)
downloadpry-f2bdd33ef00664771be40bdad8dbdaedf2fe11c1.tar.gz
Rename Pry::Commands::Edit::MethodPatcher to Pry::Method::Patcher
-rw-r--r--lib/pry/commands/edit.rb2
-rw-r--r--lib/pry/method.rb1
-rw-r--r--lib/pry/method/patcher.rb4
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