Module: Dry::Initializer::Dispatchers::BuildNestedType

Extended by:
BuildNestedType
Included in:
BuildNestedType
Defined in:
lib/dry/initializer/dispatchers/build_nested_type.rb

Instance Method Summary collapse

Instance Method Details

#call(parent:, source:, target:, type: nil, block: nil, **options) ⇒ Object

rubocop: disable Metrics/ParameterLists


18
19
20
21
22
23
# File 'lib/dry/initializer/dispatchers/build_nested_type.rb', line 18

def call(parent:, source:, target:, type: nil, block: nil, **options)
  check_certainty!(source, type, block)
  check_name!(target, block)
  type ||= build_nested_type(parent, target, block)
  {parent: parent, source: source, target: target, type: type, **options}
end