Method: Bio::Feature#assoc

Defined in:
lib/bio/feature.rb

#assocObject

Returns a Hash constructed from qualifier objects.



92
93
94
95
96
97
98
99
# File 'lib/bio/feature.rb', line 92

def assoc
  STDERR.puts "Bio::Feature#assoc is deprecated, use Bio::Feature#to_hash instead" if $DEBUG
  hash = Hash.new
  @qualifiers.each do |x|
    hash[x.qualifier] = x.value
  end
  return hash
end