module
Chem::Mol2
Defined in:
chem/formats/mol2.crClass Method Summary
-
.each(io : IO, & : Structure -> ) : Nil
Yields each structure in io.
-
.each(path : Path | String, & : Structure -> ) : Nil
Yields each structure in path.
-
.read(io : IO) : Structure
Returns the first structure from io.
-
.read(path : Path | String) : Structure
Returns the first structure from path.
-
.read_all(io : IO) : Array(Structure)
Returns all structures in io.
-
.read_all(path : Path | String) : Array(Structure)
Returns all structures in path.
-
.write(io : IO, obj : AtomView | Structure) : Nil
Writes one or more structures or groups of atoms to io.
-
.write(io : IO, objs : Enumerable(Structure)) : Nil
Writes one or more structures or groups of atoms to io.
-
.write(path : Path | String, obj : AtomView | Structure) : Nil
Writes one or more structures or groups of atoms to path.
-
.write(path : Path | String, objs : Enumerable(Structure)) : Nil
Writes one or more structures or groups of atoms to path.
Class Method Detail
Yields each structure in path.
Returns all structures in path.
Writes one or more structures or groups of atoms to io.
Writes one or more structures or groups of atoms to io.
Writes one or more structures or groups of atoms to path.
Writes one or more structures or groups of atoms to path.