module Crystalizer::YAML

Defined in:

yaml.cr
yaml/any.cr
yaml/deserialize.cr
yaml/serialize.cr

Class Method Summary

Class Method Detail

def self.deserialize(ctx : ::YAML::ParseContext, node : ::YAML::Nodes::Node, to type : ::YAML::Serializable.class | Any.class) #

[View source]
def self.deserialize(string_or_io : String | IO, to type : T.class) : T forall T #

[View source]
def self.deserialize(ctx : ::YAML::ParseContext, node : ::YAML::Nodes::Node, to type : T.class) : T forall T #

[View source]
def self.deserialize(ctx : ::YAML::ParseContext, node : ::YAML::Nodes::Node, to type : String.class) #

[View source]
def self.deserialize(ctx : ::YAML::ParseContext, node : ::YAML::Nodes::Node, to type : Path.class) #

[View source]
def self.deserialize(ctx : ::YAML::ParseContext, node : ::YAML::Nodes::Node, to int : Int.class) #

[View source]
def self.deserialize(ctx : ::YAML::ParseContext, node : ::YAML::Nodes::Node, to float : Float.class) #

[View source]
def self.deserialize(ctx : ::YAML::ParseContext, node : ::YAML::Nodes::Node, to type : Bool.class | Nil.class | Time.class | Slice(UInt8).class) #

[View source]
def self.deserialize(ctx : ::YAML::ParseContext, node : ::YAML::Nodes::Node, to type : Enum.class) #

[View source]
def self.deserialize(ctx : ::YAML::ParseContext, node : ::YAML::Nodes::Node, to type : NamedTuple.class) #

[View source]
def self.deserialize(ctx : ::YAML::ParseContext, node : ::YAML::Nodes::Node, to type : Tuple.class) #

[View source]
def self.deserialize(ctx : ::YAML::ParseContext, node : ::YAML::Nodes::Node, to type : Array.class | Deque.class | Set.class) #

[View source]
def self.deserialize(ctx : ::YAML::ParseContext, node : ::YAML::Nodes::Node, to type : Hash.class) #

[View source]
def self.parse(string_or_io : String | IO) : Any #

Deserializes a YAML document according to the core schema.


[View source]
def self.serialize(builder : ::YAML::Nodes::Builder, object : O) forall O #

[View source]
def self.serialize(builder : ::YAML::Nodes::Builder, time : Time) #

[View source]
def self.serialize(builder : ::YAML::Nodes::Builder, slice : Slice(UInt8)) #

[View source]
def self.serialize(builder : ::YAML::Nodes::Builder, object : Number | Path | String | Symbol) #

[View source]
def self.serialize(builder : ::YAML::Nodes::Builder, null : Nil) #

[View source]
def self.serialize(builder : ::YAML::Nodes::Builder, object : Enum) #

[View source]
def self.serialize(builder : ::YAML::Nodes::Builder, bool : Bool) #

[View source]
def self.serialize(builder : ::YAML::Nodes::Builder, named_tuple : NamedTuple) #

[View source]
def self.serialize(builder : ::YAML::Nodes::Builder, array : Array | Deque | Set | Tuple) #

[View source]
def self.serialize(builder : ::YAML::Nodes::Builder, hash : Hash) #

[View source]
def self.serialize(builder : ::YAML::Nodes::Builder, object : ::YAML::Serializable) #

[View source]
def self.serialize(builder : ::YAML::Nodes::Builder, any : Crystalizer::Any) #

[View source]
def self.serialize(io : IO, object : O) forall O #

[View source]
def self.serialize(object) : String #

[View source]