class Hbtrack::CompleteSF

Public Instance Methods

format(hash) click to toggle source

Format in terms of the total and the count of done and undone. @param hash [Hash] @option hash [String] :done total of done @option hash [String] :undone total of undone @return [String] formatted result

# 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