Module: Chem::Type::CdxType
- Defined in:
- lib/chem/db/types/type_cdx.rb
Class Method Summary collapse
Class Method Details
.detect_file(file) ⇒ Object
7 8 9 |
# File 'lib/chem/db/types/type_cdx.rb', line 7 def self.detect_file file File.extname(file) == '.cdx' end |
.detect_type(type) ⇒ Object
17 18 19 |
# File 'lib/chem/db/types/type_cdx.rb', line 17 def self.detect_type type type == :cdx end |
.parse(file) ⇒ Object
11 12 13 14 15 |
# File 'lib/chem/db/types/type_cdx.rb', line 11 def self.parse file # require 'chem/db/cdx.rb' mol = CDX::CDX.new mol.open file end |