Module: Chem::KEGG::KeggFormat
- Included in:
- KeggGlycanParser, KeggReactionLstParser, KeggReactionMapParser, KeggReactionParser
- Defined in:
- lib/chem/db/kegg.rb
Instance Method Summary collapse
Instance Method Details
#compound_folder=(folder) ⇒ Object
278 279 280 |
# File 'lib/chem/db/kegg.rb', line 278 def compound_folder= (folder) Chem::Kegg.kegg_compound_folder = folder end |
#each_entry ⇒ Object
282 283 284 285 286 287 288 289 290 291 292 293 294 |
# File 'lib/chem/db/kegg.rb', line 282 def each_entry state = nil str = '' @input.each do |line| if line[0..11] == ' ' str += line[12..-1] else yield(str, state) if state # Not first state str = line[12..-1] state = line[0..11].strip end end end |