module Ifrit

Defined in:

ifrit/converter.cr
ifrit/version.cr
ifrit.cr

Constant Summary

VERSION = "0.1.0"

Macro Summary

Macro Detail

macro render_macrosses #

[View source]
macro str_hash(hash, types) #

accepts compile-time hash


[View source]
macro str_hash_cast(hash, types) #

[View source]
macro stringify_hash(hash, types) #

accepts any hash


[View source]
macro sym_hash(hash, types) #

accepts compile-time hash


[View source]
macro sym_hash_cast(hash, types) #

accepts any hash or named tuple example: Ifrit.as_sym_hash(hash, String | Int32)


[View source]
macro typed_array(arr, klass) #

[View source]
macro typed_array_cast(arr, klass) #

accepts any array


[View source]
macro typed_hash(hash, key, types) #

accepts only compile-time hashes example: Ifrit.typed_hash({"a" => 1, "b" => "b"}, String, Int32 | String)


[View source]
macro typed_hash_cast(hash, key, types) #

accepts any hash


[View source]