class Dry::System::Settings::FileLoader
Public Instance Methods
call(root, env)
click to toggle source
# File lib/dry/system/settings/file_loader.rb, line 9 def call(root, env) files(root, env).reduce({}) do |hash, file| hash.merge(parser.(file)) end end
Private Instance Methods
files(root, env)
click to toggle source
# File lib/dry/system/settings/file_loader.rb, line 21 def files(root, env) [ root.join(".env"), root.join(".env.#{env}") ].compact end
parser()
click to toggle source
# File lib/dry/system/settings/file_loader.rb, line 17 def parser @parser ||= FileParser.new end