module CrSerializer

Included Modules

Defined in:

CrSerializer.cr
CrSerializer/base.cr
CrSerializer/validator.cr

Constructors

Class Method Summary

Instance Method Summary

Instance methods inherited from module YAML::Serializable

to_yaml(yaml : YAML::Nodes::Builder, groups : Array(String), expand : Array(String)) to_yaml

Instance methods inherited from module JSON::Serializable

to_json(json : JSON::Builder, groups : Array(String), expand : Array(String)) to_json

Constructor Detail

def self.new(ctx : YAML::ParseContext, node : YAML::Nodes::Node) #

[View source]
def self.new(pull : JSON::PullParser) #

[View source]

Class Method Detail

def self.version : String | Nil #

Version used as the comparator for the since and until serialization options.

Should be set in your app's main file, such as:

CrSerializer.version = MyApp::VERSION

NOTE Must be a SemanticVersion string


[View source]
def self.version=(version : String | Nil) #

Version used as the comparator for the since and until serialization options.

Should be set in your app's main file, such as:

CrSerializer.version = MyApp::VERSION

NOTE Must be a SemanticVersion string


[View source]

Instance Method Detail

def validate : Nil #

Rerun all assertions on the current state of the object


[View source]
def validator : CrSerializer::Validator #

See Validator


[View source]