module Jq::Cast

Direct including types

Defined in:

jq/jq/cast.cr

Instance Method Summary

Macro Summary

Instance Method Detail

def cast(klass : Int64.class, hint : String | Nil = nil) #

TODO write document why this needs 'not_nil!'.


[View source]
def cast(klass : Int32.class, hint : String | Nil = nil) #

[View source]
def cast(klass : Float64.class, hint : String | Nil = nil) #

[View source]
def cast(klass : Float32.class, hint : String | Nil = nil) #

[View source]
def cast(klass : String.class, hint : String | Nil = nil) #

[View source]
def cast(klass : Bool.class, hint : String | Nil = nil) #

[View source]
def cast(klass : Nil.class, hint : String | Nil = nil) #

[View source]
def cast(klass : Time.class, hint : String | Nil = nil) #

[View source]
def cast(klass : Class, hint : String | Nil = nil) #

[View source]

Macro Detail

macro cast(klass, hint) #

[View source]