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
Overrides Utils::LoadPath initialize method.
-
#load! ⇒ Object
private
Requires relative @pats [Utils::Kernel.Array] variable via each method.
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.
Overrides Utils::LoadPath initialize method
17 18 19 20 |
# File 'lib/hanami/config/load_paths.rb', line 17 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.
Requires relative @pats [Utils::Kernel.Array] variable via each method
28 29 30 31 32 |
# File 'lib/hanami/config/load_paths.rb', line 28 def load! each do |path| Utils.require!(path) end end |