Reader#

Qualified name: rsm.reader.Reader

class rsm.reader.Reader[source]#

Bases: None

Read the contents of a RSM source file.

Methods

read

Read the contents of the path.

Attributes

path

The path of the RSM source file.

src

The contents of the RSM source file.

path: Path[source]#

The path of the RSM source file.

read(path)[source]#

Read the contents of the path.

Parameters:

path (Optional[Path]) – Location of the RSM file.

Returns:

src – Contents of the file.

Return type:

str

Notes

path is stored as path and src is stored as src.

src: str[source]#

The contents of the RSM source file.