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.crInstance Method Summary
-
#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.
-
#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.
-
#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.
-
#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.
-
#load_references(path : String)
Loads all references (Serializable, Container, Enumerable of either) from the container's path.
-
#save_references(path : String)
Saves all references (Serializable, Container, Enumerable of either) to the container's path.
Instance Method Detail
Loads an enumerable of containers from a directory of subdirectories.
Loads an enumerable of serializable objects from a directory of symlinks.
Loads a hash of containers from a directory of subdirectories.
Loads a hash of serializable objects from a directory of symlinks.
Loads all references (Serializable, Container, Enumerable of either) from the container's path.
Saves all references (Serializable, Container, Enumerable of either) to the container's path.