Class: Dry::System::Settings::FileLoader

Inherits:
Object
  • Object
show all
Defined in:
lib/dry/system/settings/file_loader.rb

Instance Method Summary collapse

Instance Method Details

#call(root, env) ⇒ Object


7
8
9
10
11
# File 'lib/dry/system/settings/file_loader.rb', line 7

def call(root, env)
  files(root, env).reduce({}) do |hash, file|
    hash.merge(parser.(file))
  end
end