Module: Dry::Initializer::Dispatchers::WrapType

Extended by:
WrapType
Included in:
WrapType
Defined in:
lib/dry/initializer/dispatchers/wrap_type.rb

Overview

Takes ‘:type` and `:wrap` to construct the final value coercer

Instance Method Summary collapse

Instance Method Details

#call(type: nil, wrap: 0, **options) ⇒ Object



7
8
9
# File 'lib/dry/initializer/dispatchers/wrap_type.rb', line 7

def call(type: nil, wrap: 0, **options)
  { type: wrapped_type(type, wrap), **options }
end