Method: Bio::Features#each
- Defined in:
- lib/bio/compat/features.rb
#each(arg = nil) ⇒ Object
Iterates on each feature object.
Arguments:
-
(optional) key: if specified, only iterates over features with this key
132 133 134 135 136 137 |
# File 'lib/bio/compat/features.rb', line 132 def each(arg = nil) @features.each do |x| next if arg and x.feature != arg yield x end end |