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:
parent
036c3aa42e
commit
4f4b864670
1 changed files with 6 additions and 0 deletions
|
@ -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'
|
||||
|
|
Loading…
Add table
Reference in a new issue