Browse files

reload! helper for irb

  • Loading branch information...
1 parent 036c3aa commit 4f4b864670250d78c8d9d51e26e9ea91a5eb8edf blake.mizerany@gmail.com committed Sep 17, 2007
Showing with 6 additions and 0 deletions.
  1. +6 −0 lib/sinatra/irb.rb
View
6 lib/sinatra/irb.rb
@@ -7,6 +7,12 @@ def start!
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'

0 comments on commit 4f4b864

Please sign in to comment.