https://github.com/auser/reloadable
Reloader because it's easier to reload then restart
https://github.com/auser/reloadable
Last synced: 4 months ago
JSON representation
Reloader because it's easier to reload then restart
- Host: GitHub
- URL: https://github.com/auser/reloadable
- Owner: auser
- License: mit
- Created: 2009-04-05T04:30:17.000Z (over 16 years ago)
- Default Branch: master
- Last Pushed: 2009-04-05T04:32:30.000Z (over 16 years ago)
- Last Synced: 2025-02-10T21:37:16.889Z (5 months ago)
- Homepage:
- Size: 78.1 KB
- Stars: 2
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.rdoc
- License: LICENSE
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
endThat's it!
== Copyright
Copyright (c) 2009 Ari Lerner. See LICENSE for details.