lib/grape/validations/types/dry_type_coercer.rb
def coercer_instance_for(type, strict = false)
            return PrimitiveCoercer.new(type, strict) if type.instance_of?(Class)

            # in case of a collection (Array[Integer]) the type is an instance of a collection,
            # so we need to figure out the actual type
            collection_coercer_for(type.class).new(type, strict)
          end
# Returns an instance of a coercer for a given type
Returns an instance of a coercer for a given type
Returns an instance of a coercer for a given type
def coercer_instance_for(type, strict = false)
            return PrimitiveCoercer.new(type, strict) if type.instance_of?(Class)
            collection_coercer_for(type.class).new(type, strict)
          end
def coercer_instance_for ( type , strict = false ) return PrimitiveCoercer . new ( type , strict ) if type . instance_of? ( Class ) collection_coercer_for ( type . class ) . new ( type , strict ) end
Returns an instance of a coercer for a given type
Returns an instance of a coercer for a given type
# in case of a collection (Array[Integer]) the type is an instance of a collection, # so we need to figure out the actual type
type
strict