Metro2.File (metro_2 v0.2.0)

This module defines the initial struct of the the metro2 file struct, further it contains the serialisation method, wich ultimately returns a string containing the struct as valid metro2 file content.

Summary

Functions

Add a base segement to the base segment list in the file struct.

Creates a new Metro2 File with properly initialized segments

converts and serializes a Metro2.File struct into a Metro2 conform string

Functions

add_base_segment(file, segment)

Add a base segement to the base segment list in the file struct.

new()

Creates a new Metro2 File with properly initialized segments

serialize(file)

converts and serializes a Metro2.File struct into a Metro2 conform string