Method: Bio::EMBLDB::Common#kw
- Defined in:
- lib/bio/db/embl/common.rb
#kw ⇒ Object Also known as: keywords
returns keywords in the KW line.
-
Bio::EMBLDB::Common#kw -> [ <keyword>* ]
KW Line; keyword (>=1)
KW [Keyword;]+
220 221 222 223 224 225 226 227 228 229 230 |
# File 'lib/bio/db/embl/common.rb', line 220 def kw unless @data['KW'] if get('KW').size > 0 tmp = fetch('KW').sub(/.$/,'') @data['KW'] = tmp.split(/;/).map {|e| e.strip } else @data['KW'] = [] end end @data['KW'] end |