Module: Confuse::InstanceMethods

Defined in:
lib/confuse/dsl.rb

Overview

Instance methods for getting the defined configuration from an instance of a configured class.

Instance Method Summary collapse

Instance Method Details

#configObject

Lazilly create the config object when it is first requested.



62
63
64
65
66
# File 'lib/confuse/dsl.rb', line 62

def config
  self.class.configured_by.load_namespaces(self.class.namespaces)
  self.class.configured_by.read_files(self.class.config_path)
  self.class.configured_by
end