Rename Pry::Commands::Edit::MethodPatcher to Pry::Method::Patcher

This commit is contained in:
Conrad Irwin 2013-03-27 23:39:44 -07:00
parent a7c85d7882
commit f2bdd33ef0
3 changed files with 4 additions and 3 deletions

View File

@ -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

View File

@ -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

View File

@ -1,6 +1,6 @@
class Pry
class Command::Edit
class MethodPatcher
class Method
class Patcher
attr_accessor :_pry_
attr_accessor :code_object