1
0
Fork 0
mirror of https://github.com/pry/pry.git synced 2022-11-09 12:35:05 -05:00
pry--pry/lib/pry/extended_commands/experimental.rb
2011-10-01 16:57:39 -07:00

12 lines
324 B
Ruby

class Pry
module ExtendedCommands
Experimental = Pry::CommandSet.new do
command "reload-method", "Reload the source specifically for a method", :requires_gem => "method_reload" do |meth_name|
meth = get_method_or_raise(meth_name, target, {}, :omit_help)
meth.reload
end
end
end
end