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.
82 83 84 |
# File 'lib/underway/settings.rb', line 82 def configuration @configuration end |
Class Method Details
.config ⇒ Object
TODO: remove me
95 96 97 |
# File 'lib/underway/settings.rb', line 95 def config configuration end |
.configure ⇒ Object
84 85 86 87 88 89 90 91 92 |
# File 'lib/underway/settings.rb', line 84 def configure if block_given? yield configuration else raise ArgumentError.new("Please set configuration by passing a block") end configuration.load! end |