num = 0
last = false
- if options.has_key? :data_in
+ if options[:data_in]
options[:data_in].each do |file|
- Genbank.open(file, mode='r') do |gb|
+ Genbank.open(file, 'r') do |gb|
gb.each(hash_keys, hash_feats, hash_quals) do |entry|
output.puts entry
num += 1
- if options.has_key? :num and options[:num] == num
+ if options[:num] and options[:num] == num
last = true
break
end