module Chem::Mol2

Defined in:

chem/formats/mol2.cr

Class Method Summary

Class Method Detail

def self.each(io : IO, & : Structure -> ) : Nil #

Yields each structure in io.


[View source]
def self.each(path : Path | String, & : Structure -> ) : Nil #

Yields each structure in path.


[View source]
def self.read(io : IO) : Structure #

Returns the first structure from io. Use .read_all or .each for multiple.


[View source]
def self.read(path : Path | String) : Structure #

Returns the first structure from path. Use .read_all or .each for multiple.


[View source]
def self.read_all(io : IO) : Array(Structure) #

Returns all structures in io.


[View source]
def self.read_all(path : Path | String) : Array(Structure) #

Returns all structures in path.


[View source]
def self.write(io : IO, obj : AtomView | Structure) : Nil #

Writes one or more structures or groups of atoms to io.


[View source]
def self.write(io : IO, objs : Enumerable(Structure)) : Nil #

Writes one or more structures or groups of atoms to io.


[View source]
def self.write(path : Path | String, obj : AtomView | Structure) : Nil #

Writes one or more structures or groups of atoms to path.


[View source]
def self.write(path : Path | String, objs : Enumerable(Structure)) : Nil #

Writes one or more structures or groups of atoms to path.


[View source]