Class: Hanami::Config::LoadPaths Private

Inherits:
Utils::LoadPaths
  • Object
show all
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

Since:

  • 0.1.0

Instance Method Summary collapse

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

See Also:

  • Utils::LoadPaths#initialize

Since:

  • 0.1.0



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

See Also:

  • Utils::LoadPaths#each

Since:

  • 0.1.0



28
29
30
31
32
# File 'lib/hanami/config/load_paths.rb', line 28

def load!
  each do |path|
    Utils.require!(path)
  end
end