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
-
.config ⇒ Object
TODO: remove me.
- .configure ⇒ Object
Class Attribute Details
.configuration ⇒ Object (readonly)
Returns the value of attribute configuration.
102 103 104 |
# File 'lib/underway/settings.rb', line 102 def configuration @configuration end |
Class Method Details
.config ⇒ Object
TODO: remove me
115 116 117 |
# File 'lib/underway/settings.rb', line 115 def config configuration end |
.configure ⇒ Object
104 105 106 107 108 109 110 111 112 |
# File 'lib/underway/settings.rb', line 104 def configure if block_given? yield configuration else raise ArgumentError.new("Please set configuration by passing a block") end configuration.load! end |