1
0
Fork 0
mirror of https://github.com/pry/pry.git synced 2022-11-09 12:35:05 -05:00

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