Module: Chem::Type::KeggGlycanType
- Defined in:
- lib/chem/db/types/type_kegg.rb
Class Method Summary collapse
Class Method Details
.detect_file(filename) ⇒ Object
74 75 76 |
# File 'lib/chem/db/types/type_kegg.rb', line 74 def self.detect_file filename return true if File.basename(filename) == "glycan" end |
.detect_type(type) ⇒ Object
83 84 85 |
# File 'lib/chem/db/types/type_kegg.rb', line 83 def self.detect_type type type == :kegg_glycan end |
.parse(file) ⇒ Object
78 79 80 81 |
# File 'lib/chem/db/types/type_kegg.rb', line 78 def self.parse file require 'chem/db/kegg.rb' Chem::KEGG::KeggGlycanParser.new file end |