Method: Bio::KEGG::PATHWAY#compounds_as_hash

Defined in:
lib/bio/db/kegg/pathway.rb

#compounds_as_hashObject Also known as: compounds

Compounds described in the COMPOUND lines.


Returns

Hash of compound ID and its definition



205
206
207
208
209
210
# File 'lib/bio/db/kegg/pathway.rb', line 205

def compounds_as_hash
  unless (defined? @compounds_as_hash) && @compounds_as_hash
    @compounds_as_hash = strings_as_hash(compounds_as_strings)
  end
  @compounds_as_hash
end