def coerce(value, configuration)
      return value if type.nil?
      return value if value.nil?

      options = {}
      options[:coercion_class] = KNOWN_TYPES[items.type] unless items.nil?
      KNOWN_TYPES[type].new(value, options).coerce(configuration)
    end
def coerce(value, configuration)
      return value if type.nil?
      return value if value.nil?

      options = {}
      options[:coercion_class] = KNOWN_TYPES[items.type] unless items.nil?
      KNOWN_TYPES[type].new(value, options).coerce(configuration)
    end
def coerce ( value , configuration ) return value if type . nil? return value if value . nil? options = { } options [ :coercion_class ] = KNOWN_TYPES [ items . type ] unless items . nil? KNOWN_TYPES [ type ] . new ( value , options ) . coerce ( configuration ) end
Coerces value to proper type
Coerces value to proper type