Class: WaterDrop::Config
- Inherits:
-
Object
- Object
- WaterDrop::Config
- Extended by:
- Dry::Configurable
- Defined in:
- lib/water_drop/config.rb
Overview
Configuration object for setting up all options required by WaterDrop
Class Method Summary collapse
-
.setup {|WaterDrop| ... } ⇒ Object
Configuration method.
Class Method Details
.setup {|WaterDrop| ... } ⇒ Object
Configuration method
141 142 143 144 145 146 |
# File 'lib/water_drop/config.rb', line 141 def setup configure do |config| yield(config) validate!(config.to_h) end end |