Method: Grape::Validations::Types::DryTypeCoercer#initialize

Defined in:
lib/grape/validations/types/dry_type_coercer.rb

#initialize(type, strict = false) ⇒ DryTypeCoercer



35
36
37
38
39
# File 'lib/grape/validations/types/dry_type_coercer.rb', line 35

def initialize(type, strict = false)
  @type = type
  @strict = strict
  @cache_coercer = strict ? DryTypes::StrictCache : DryTypes::ParamsCache
end