class FormObject::Coercer

Defined in:

form_object/coercer.cr

Instance Method Summary

Instance Method Detail

def coerce(value : String, str_class : String) #

[View source]
def coerce(value : Nil, str_class : String) #

[View source]
def to_array(value : String, str_class : String) #

Converts single string array.

coercer.to_array("[1]", "Array(Int32)") # [1]

[View source]
def to_b(value : String) #

[View source]
def to_f(value : String) #

[View source]
def to_f32(value : String) #

[View source]
def to_i(value : String) #

[View source]
def to_i16(value : String) #

[View source]
def to_i64(value : String) #

[View source]
def to_json(value : String) #

[View source]
def to_pr32(value : String) #

[View source]
def to_pr64(value : String) #

[View source]
def to_s(value : String) #

[View source]
def to_time(value : String) #

[View source]