class Crystime::VirtualTimeConverter

Overview

A custom to/from YAML converter for VirtualTime.

Defined in:

crystime/virtual_time.cr

Class Method Summary

Class Method Detail

def self.from_yaml(value : YAML::ParseContext, node : YAML::Nodes::Node) : Crystime::VirtualTime::Virtual #

Converts YAML to VirtualTime object.


[View source]
def self.from_yaml(value : String | IO) : Crystime::VirtualTime::Virtual #

Converts YAML to VirtualTime object.


[View source]
def self.to_yaml(value : Crystime::VirtualTime::Virtual, yaml : YAML::Nodes::Builder) #

Converts VirtualTime object to YAML. XXX this has to be changed so that the whole object is serialized into yyyy/mm/dd/day_of_week hh:mm:ss.ms, not each field individually.


[View source]