Class: Hbtrack::CompleteSF
- Inherits:
-
Object
- Object
- Hbtrack::CompleteSF
- Defined in:
- lib/hbtrack/stat_formatter.rb
Instance Method Summary collapse
-
#format(hash) ⇒ String
Format in terms of the total and the count of done and undone.
Instance Method Details
#format(hash) ⇒ String
Format in terms of the total and the count of done and undone.
25 26 27 28 |
# File 'lib/hbtrack/stat_formatter.rb', line 25 def format(hash) total = hash[:done] + hash[:undone] "All: #{total}, Done: #{hash[:done]}, Undone: #{hash[:undone]}" end |