Module: Dry::Initializer::Dispatchers::PrepareDefault
- Extended by:
- PrepareDefault
- Included in:
- PrepareDefault
- Defined in:
- lib/dry/initializer/dispatchers/prepare_default.rb
Instance Method Summary collapse
Instance Method Details
#call(default: nil, optional: nil, **options) ⇒ Object
13 14 15 16 17 18 |
# File 'lib/dry/initializer/dispatchers/prepare_default.rb', line 13 def call(default: nil, optional: nil, **) default = callable! default check_arity! default {default: default, optional: (optional | default), **} end |