Class: Lotus::Config::LoadPaths Private
- Inherits:
-
Utils::LoadPaths
- Object
- Utils::LoadPaths
- Lotus::Config::LoadPaths
- Defined in:
- lib/lotus/config/load_paths.rb
Overview
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Define the load paths where the application should load
Constant Summary collapse
- PATTERN =
This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.
'**/*.rb'.freeze
Instance Method Summary collapse
- #load!(root) ⇒ Object private
Instance Method Details
#load!(root) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
12 13 14 15 16 17 18 |
# File 'lib/lotus/config/load_paths.rb', line 12 def load!(root) @root = root each do |path| Dir.glob(path.join(PATTERN)).each { |file| require file } end end |