Module: Dry::Initializer::Dispatchers::UnwrapType

Extended by:
UnwrapType
Included in:
UnwrapType
Defined in:
lib/dry/initializer/dispatchers/unwrap_type.rb

Instance Method Summary collapse

Instance Method Details

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



15
16
17
18
19
# File 'lib/dry/initializer/dispatchers/unwrap_type.rb', line 15

def call(type: nil, wrap: 0, **options)
  type, count = unwrap(type, wrap)

  {type: type, wrap: count, **options}
end