Class: Underway::Settings
- Inherits:
-
Object
- Object
- Underway::Settings
- Defined in:
- lib/underway/settings.rb
Defined Under Namespace
Classes: Configuration
Class Attribute Summary collapse
-
.configuration ⇒ Object
readonly
Returns the value of attribute configuration.
Class Method Summary collapse
Class Attribute Details
.configuration ⇒ Object (readonly)
Returns the value of attribute configuration.
141 142 143 |
# File 'lib/underway/settings.rb', line 141 def configuration @configuration end |
Class Method Details
.configure ⇒ Object
143 144 145 146 147 148 149 150 151 152 153 |
# File 'lib/underway/settings.rb', line 143 def configure reset_configuration! if block_given? yield configuration else raise ArgumentError.new("Please set configuration by passing a block") end configuration.load! end |
.reset_configuration! ⇒ Object
155 156 157 |
# File 'lib/underway/settings.rb', line 155 def reset_configuration! @configuration = Configuration.new end |