Class: Hanami::Config::LoadPaths Private
- Inherits:
-
Utils::LoadPaths
- Object
- Utils::LoadPaths
- Hanami::Config::LoadPaths
- Defined in:
- lib/hanami/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
Instance Method Summary collapse
-
#initialize(root) ⇒ LoadPaths
constructor
private
A new instance of LoadPaths.
- #load! ⇒ Object private
Constructor Details
#initialize(root) ⇒ LoadPaths
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.
Returns a new instance of LoadPaths.
10 11 12 13 |
# File 'lib/hanami/config/load_paths.rb', line 10 def initialize(root) super() @root = root end |
Instance Method Details
#load! ⇒ 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.
15 16 17 18 19 |
# File 'lib/hanami/config/load_paths.rb', line 15 def load! each do |path| Utils.require!(path) end end |