1
0
Fork 0
mirror of https://github.com/sinatra/sinatra synced 2023-03-27 23:18:01 -04:00

reload! helper for irb

This commit is contained in:
blake.mizerany@gmail.com 2007-09-17 23:15:33 +00:00
parent 036c3aa42e
commit 4f4b864670

View file

@ -7,6 +7,12 @@ module Sinatra
Object.send(:include, TestMethods) # added to allow post_to in console
Object.class_eval do
def reload!
Loader.reload!
end
end
ARGV.clear # Avoid passing args to IRB
require 'irb'
require 'irb/completion'