Module: WolfCore::RequireUtils
- Defined in:
- lib/wolf_core/utils/require_utils.rb
Class Method Summary collapse
Class Method Details
.require_relative_folder(*folders) ⇒ Object
5 6 7 8 |
# File 'lib/wolf_core/utils/require_utils.rb', line 5 def require_relative_folder(*folders) folder_files = File.join(*folders, '**', '*.rb') Dir[folder_files].sort.each { |file| require_relative file } end |