module Ifrit
Defined in:
ifrit/converter.crifrit/version.cr
ifrit.cr
Constant Summary
-
VERSION =
"0.1.0"
Macro Summary
- render_macrosses
-
str_hash(hash, types)
accepts compile-time hash
- str_hash_cast(hash, types)
-
stringify_hash(hash, types)
accepts any hash
-
sym_hash(hash, types)
accepts compile-time hash
-
sym_hash_cast(hash, types)
accepts any hash or named tuple example: Ifrit.as_sym_hash(hash, String | Int32)
- typed_array(arr, klass)
-
typed_array_cast(arr, klass)
accepts any array
-
typed_hash(hash, key, types)
accepts only compile-time hashes example: Ifrit.typed_hash({"a" => 1, "b" => "b"}, String, Int32 | String)
-
typed_hash_cast(hash, key, types)
accepts any hash
Macro Detail
macro sym_hash_cast(hash, types)
#
accepts any hash or named tuple example: Ifrit.as_sym_hash(hash, String | Int32)
macro typed_hash(hash, key, types)
#
accepts only compile-time hashes example: Ifrit.typed_hash({"a" => 1, "b" => "b"}, String, Int32 | String)