pry--pry/lib/pry/commands/reset.rb

12 lines
206 B
Ruby
Raw Normal View History

class Pry
Pry::Commands.create_command "reset" do
group 'Context'
description "Reset the REPL to a clean state."
def process
output.puts "Pry reset."
exec "pry"
end
end
end