Module: Bellbro::Settings

Defined in:
lib/bellbro/settings.rb

Defined Under Namespace

Classes: SettingsData

Class Method Summary collapse

Class Method Details

.configurationObject



7
8
9
# File 'lib/bellbro/settings.rb', line 7

def self.configuration
  @configuration ||= Bellbro::Settings::SettingsData.new
end

.configure {|configuration| ... } ⇒ Object

Yields:



11
12
13
# File 'lib/bellbro/settings.rb', line 11

def self.configure
  yield configuration
end

.configured?Boolean

Returns:

  • (Boolean)


20
21
22
# File 'lib/bellbro/settings.rb', line 20

def self.configured?
  !!configuration
end

.loggerObject



15
16
17
18
# File 'lib/bellbro/settings.rb', line 15

def self.logger
  return unless configured?
  configuration.logger
end