Permalink
Browse files

+ improved example

  • Loading branch information...
1 parent ecbce86 commit b6cf33b3f33a77d6a2439c08aa1753df02ffbbe9 @floere committed May 31, 2010
Showing with 14 additions and 9 deletions.
  1. +1 −1 euruko 2010 flashtalk/demo.rb
  2. +13 −8 euruko 2010 flashtalk/loader.rb
@@ -1,5 +1,5 @@
load 'loader.rb'
-Loader.load_app
+Loader.load_application
load 'signal.rb'
@@ -2,18 +2,23 @@
#
module Loader
- def self.selfload
- puts 'Loader loading itself.'
- load __FILE__ # load self
- puts 'Loader loading application.'
- load_app
+ # Load itself.
+ #
+ def self.reload
+ load_self
+ load_application
end
- def self.reload
- selfload
+ # Load itself.
+ #
+ def self.load_self
+ puts 'Loader loading itself.'
+ load __FILE__ # load this file
end
- def self.load_app
+ # Load the application.
+ #
+ def self.load_application
puts 'Loading application.'
# load parts of your app
load 'app.rb' # change to better_app.rb while running.

0 comments on commit b6cf33b

Please sign in to comment.