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.

Returns a new instance of LoadPaths.

Since:

  • 0.1.0



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.

Since:

  • 0.1.0



15
16
17
18
19
# File 'lib/hanami/config/load_paths.rb', line 15

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