Class CDK::MolfileReader
In: lib/cdk/lang.rb
Parent: Object

String-based molfile reader.

Methods

new   read  

Public Class methods

[Source]

    # File lib/cdk/lang.rb, line 29
29:     def initialize
30:       @reader = MDLReader.new
31:     end

Public Instance methods

Returns the molecule encoded by the given molfile.

[Source]

    # File lib/cdk/lang.rb, line 38
38:     def read molfile
39:       @reader.set_reader StringReader.new(molfile)
40:       @reader.read Molecule.new
41:     end

[Validate]