Module: Dry::Initializer::Dispatchers::CheckType
- Extended by:
- CheckType
- Included in:
- CheckType
- Defined in:
- lib/dry/initializer/dispatchers/check_type.rb
Overview
Checks whether an unwrapped type is valid
Instance Method Summary collapse
Instance Method Details
#call(source:, type: nil, wrap: 0, **options) ⇒ Object
7 8 9 10 11 12 |
# File 'lib/dry/initializer/dispatchers/check_type.rb', line 7 def call(source:, type: nil, wrap: 0, **) check_if_callable! source, type check_arity! source, type, wrap { source: source, type: type, wrap: wrap, ** } end |