Module: Dry::Initializer::Dispatchers::CheckType

Extended by:
CheckType
Included in:
CheckType
Defined in:
lib/dry/initializer/dispatchers/check_type.rb

Instance Method Summary collapse

Instance Method Details

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



11
12
13
14
15
16
# File 'lib/dry/initializer/dispatchers/check_type.rb', line 11

def call(source:, type: nil, wrap: 0, **options)
  check_if_callable! source, type
  check_arity! source, type, wrap

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