Method: Bio::Feature#each
- Defined in:
- lib/bio/feature.rb
#each(arg = nil) ⇒ Object
Iterates on each qualifier object.
Arguments:
-
(optional) key: if specified, only iterates over qualifiers with this key
84 85 86 87 88 89 |
# File 'lib/bio/feature.rb', line 84 def each(arg = nil) @qualifiers.each do |x| next if arg and x.qualifier != arg yield x end end |