Class: Lotus::Config::LoadPaths Private

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

Since:

  • 0.1.0

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.

Since:

  • 0.1.0

'**/*.rb'.freeze

Instance Method Summary collapse

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.

Since:

  • 0.1.0



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