Class: Avo::Reloader
- Inherits:
-
Object
- Object
- Avo::Reloader
- Defined in:
- lib/avo/reloader.rb
Instance Method Summary collapse
Instance Method Details
#reload! ⇒ Object
4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
# File 'lib/avo/reloader.rb', line 4 def reload! # reload all files declared in paths files.each do |file| if File.exist? file load file end end # reload all files declared in each directory directories.keys.each do |dir| Dir.glob("#{dir}/**/*.rb".to_s).each do |file| if File.exist? file load file end end end end |