Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/auser/reloadable

Reloader because it's easier to reload then restart
https://github.com/auser/reloadable

Last synced: 15 days ago
JSON representation

Reloader because it's easier to reload then restart

Awesome Lists containing this project

README

        

= 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 (c) 2009 Ari Lerner. See LICENSE for details.