Module: Chem::Type::KeggReactionMapType
- Defined in:
- lib/chem/db/types/type_kegg.rb
Class Method Summary collapse
Class Method Details
.detect_file(filename) ⇒ Object
33 34 35 |
# File 'lib/chem/db/types/type_kegg.rb', line 33 def self.detect_file filename return true if File.basename(filename) == 'reaction_mapformula.lst' end |
.detect_type(type) ⇒ Object
41 42 43 |
# File 'lib/chem/db/types/type_kegg.rb', line 41 def self.detect_type type type == :kegg_rxn_map end |
.parse(file) ⇒ Object
37 38 39 |
# File 'lib/chem/db/types/type_kegg.rb', line 37 def self.parse file Chem::KEGG::KeggReactionMapParser.new file end |