Module: Bellbro::Settings
- Defined in:
- lib/bellbro/settings.rb
Defined Under Namespace
Classes: SettingsData
Class Method Summary collapse
- .configuration ⇒ Object
- .configure {|configuration| ... } ⇒ Object
- .configured? ⇒ Boolean
- .logger ⇒ Object
Class Method Details
.configuration ⇒ Object
7 8 9 |
# File 'lib/bellbro/settings.rb', line 7 def self.configuration @configuration ||= Bellbro::Settings::SettingsData.new end |
.configure {|configuration| ... } ⇒ Object
11 12 13 |
# File 'lib/bellbro/settings.rb', line 11 def self.configure yield configuration end |
.configured? ⇒ Boolean
20 21 22 |
# File 'lib/bellbro/settings.rb', line 20 def self.configured? !!configuration end |
.logger ⇒ Object
15 16 17 18 |
# File 'lib/bellbro/settings.rb', line 15 def self.logger return unless configured? configuration.logger end |