Class: Staticz::Modules::LibLoader
- Inherits:
-
Object
- Object
- Staticz::Modules::LibLoader
- Defined in:
- lib/modules/lib_loader.rb
Class Method Summary collapse
Class Method Details
.load_files ⇒ Object
4 5 6 7 8 9 10 11 12 13 14 15 |
# File 'lib/modules/lib_loader.rb', line 4 def self.load_files return if !Dir.exist? "lib" Dir["lib/**/*.rb"].each do |rb_file| begin load rb_file rescue SyntaxError => e puts Colors.in_red("Could not load #{rb_file}:") puts Colors.in_red(e.) end end end |