Class: Respawn::Setup
- Inherits:
-
Data
- Object
- Data
- Respawn::Setup
- Defined in:
- lib/respawn/setup.rb
Instance Method Summary collapse
-
#initialize(**options) ⇒ Setup
constructor
A new instance of Setup.
Constructor Details
#initialize(**options) ⇒ Setup
Returns a new instance of Setup.
24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 |
# File 'lib/respawn/setup.rb', line 24 def initialize(**) with_defaults = OPTIONS.map.to_h do |key, value| [ key, .fetch(key) do if value.respond_to?(:call) value.call else value end end ] end super(with_defaults) end |