Method: Configurative::Settings.load

Defined in:
lib/configurative/settings.rb

.load(*files) ⇒ Object



110
111
112
113
114
115
116
117
118
119
120
121
122
# File 'lib/configurative/settings.rb', line 110

def self.load(*files)
  settings = nil
  path     = find_file(*files)
  if path
    begin
      settings          = SettingsLoader.new(options).load!(path)
      @@instances[self] = settings
    rescue => error
      # Deliberately ignored.
    end
  end
  settings
end