lib/bio/db/kegg/pathway.rb in bio-1.6.0.pre.20181210 vs lib/bio/db/kegg/pathway.rb in bio-2.0.0

- old
+ new

@@ -40,10 +40,15 @@ include Common::OrthologsAsHash # Returns a Hash of the orthology ID and definition in ORTHOLOGY field. def orthologs_as_hash; super; end if false #dummy for RDoc alias orthologs orthologs_as_hash + include Common::DiseasesAsHash + # Returns a Hash of the disease ID and its definition + def diseases_as_hash; super; end if false #dummy for RDoc + alias diseases diseases_as_hash + include Common::References # REFERENCE -- Returns contents of the REFERENCE records as an Array of # Bio::Reference objects. # --- # *Returns*:: an Array containing Bio::Reference objects @@ -119,20 +124,9 @@ # --- # *Returns*:: Array containing String def diseases_as_strings lines_fetch('DISEASE') end - - # Diseases described in the DISEASE lines. - # --- - # *Returns*:: Hash of disease ID and its definition - def diseases_as_hash - unless (defined? @diseases_as_hash) && @diseases_as_hash - @diseases_as_hash = strings_as_hash(diseases_as_strings) - end - @diseases_as_hash - end - alias diseases diseases_as_hash # Returns an Array of a database name and entry IDs in DBLINKS field. # --- # *Returns*:: Array containing String def dblinks_as_strings