Class: Bio::GFFbrowser::Helpers::Counter
- Inherits:
-
Hash
- Object
- Hash
- Bio::GFFbrowser::Helpers::Counter
- Defined in:
- lib/bio/db/gff/gffvalidate.rb
Overview
Helper class for counting IDs
Instance Method Summary collapse
Instance Method Details
#add(id) ⇒ Object
28 29 30 31 |
# File 'lib/bio/db/gff/gffvalidate.rb', line 28 def add id self[id] = 0 if self[id] == nil self[id] += 1 end |