Module: ClassLoader
Overview
Loads all classes in the right order
Instance Method Summary collapse
-
#load(lib_dir) ⇒ Object
This does the loading of the classes.
Instance Method Details
#load(lib_dir) ⇒ Object
TODO:
Here is a huge space for improvement
This does the loading of the classes.
7 8 9 10 11 12 13 14 |
# File 'lib/irontask/class_loader.rb', line 7 def load(lib_dir) ['models', 'helpers', 'controllers'].each do |class_dir| path = File.join(File.join(lib_dir, class_dir), %w[** *.rb]) Dir[path].each do |name| require name end end end |