Class: Etcher::Builder
- Inherits:
-
Object
- Object
- Etcher::Builder
- Defined in:
- lib/etcher/builder.rb
Overview
Builds a configuration.
Instance Method Summary collapse
- #call(**overrides) ⇒ Object
-
#initialize(registry = Registry.new) ⇒ Builder
constructor
A new instance of Builder.
Constructor Details
Instance Method Details
#call(**overrides) ⇒ Object
18 19 20 21 22 23 |
# File 'lib/etcher/builder.rb', line 18 def call(**overrides) load.bind { |attributes| transform attributes } .fmap { |attributes| attributes.merge! overrides.symbolize_keys! } .bind { |attributes| validate attributes } .bind { |attributes| model attributes } end |