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

String-based SMILES reader.

Methods

new   read  

Public Class methods

[Source]

    # File lib/cdk/lang.rb, line 68
68:     def initialize
69:       @reader = SmilesParser.new
70:     end

Public Instance methods

Returns the molecule encoded by the given SMILES string.

[Source]

    # File lib/cdk/lang.rb, line 78
78:     def read smiles
79:       @reader.parse_smiles smiles
80:     end

[Validate]