module Sepia::Container

Overview

Sepia::Container tagged objects can contain Sepia::Serializable objects or other Sepia::Container objects.

Containers serialize as directories with references (links) to other containers or to Sepia::Serializable objects.

Defined in:

sepia/container.cr

Instance Method Summary

Instance Method Detail

def load_enumerable_of_containers(path : String, name : String, collection_type : T.class, item_type : U.class) forall T, U #

Loads an enumerable of containers from a directory of subdirectories.


[View source]
def load_enumerable_of_references(path : String, name : String, collection_type : T.class, item_type : U.class) forall T, U #

Loads an enumerable of serializable objects from a directory of symlinks.


[View source]
def load_hash_of_containers(path : String, name : String, collection_type : T.class, item_type : U.class) forall T, U #

Loads a hash of containers from a directory of subdirectories.


[View source]
def load_hash_of_references(path : String, name : String, collection_type : T.class, item_type : U.class) forall T, U #

Loads a hash of serializable objects from a directory of symlinks.


[View source]
def load_references(path : String) #

Loads all references (Serializable, Container, Enumerable of either) from the container's path.


[View source]
def save_references(path : String) #

Saves all references (Serializable, Container, Enumerable of either) to the container's path.


[View source]