CODE
# File lib/bio/db/litdb.rb, line 51 def entry_id field_fetch('CODE') end
FIELD
# File lib/bio/db/litdb.rb, line 61 def field field_fetch('FIELD') end
JOURNAL
# File lib/bio/db/litdb.rb, line 66 def journal field_fetch('JOURNAL') end
KEYWORD ';;'
# File lib/bio/db/litdb.rb, line 76 def keyword unless @data['KEYWORD'] @data['KEYWORD'] = fetch('KEYWORD').split(/;;\s*/) end @data['KEYWORD'] end
Returns
# File lib/bio/db/litdb.rb, line 32 def reference hash = Hash.new('') hash['authors'] = author.split(/;/).map {|x| x.sub(/,/, ', ')} hash['title'] = title hash['journal'] = journal.gsub(/\./, '. ').strip vol = volume.split(/,\s+/) if vol.size > 1 hash['volume'] = vol.shift.sub(/Vol\./, '') hash['pages'], hash['year'] = vol.pop.split(' ') hash['issue'] = vol.shift.sub(/No\./, '') unless vol.empty? end return Reference.new(hash) end
Generated with the Darkfish Rdoc Generator 2.