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