2011-05-15 17:31:07 +00:00
|
|
|
class Pry
|
|
|
|
module ExtendedCommands
|
|
|
|
|
|
|
|
Experimental = Pry::CommandSet.new do
|
|
|
|
|
2011-05-29 15:44:02 +00:00
|
|
|
command "reload-method", "Reload the source specifically for a method", :requires_gem => "method_reload" do |meth_name|
|
2011-10-01 23:57:39 +00:00
|
|
|
meth = get_method_or_raise(meth_name, target, {}, :omit_help)
|
|
|
|
meth.reload
|
2011-05-29 15:44:02 +00:00
|
|
|
end
|
2011-05-15 17:31:07 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|