Reloader because it's easier to reload then restart
Switch branches/tags
Nothing to show
Clone or download
carview.php?tsp= Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
carview.php?tsp= lib
carview.php?tsp= test
carview.php?tsp= .document
carview.php?tsp= .gitignore
carview.php?tsp= LICENSE
carview.php?tsp= README.rdoc
carview.php?tsp= Rakefile
carview.php?tsp= VERSION.yml
carview.php?tsp= reloadable.gemspec

README.rdoc

reloadable

Reloading files is useful… sometimes. This makes it easy to reload files you define.

How?

class PunkyBrewster
  include Reloadable
  # Require her friends and register that we might be reloading them later
  require_reloadable_files "edward.rb"
  require_reloadable_files "frank.rb"
  def say_hello
    reload_files! if should_reload? # should_reload? is your own method
    puts "Hello"
  end
end

That's it!

Copyright

Copyright © 2009 Ari Lerner. See LICENSE for details.