Class: Hbtrack::DoneUndoneSF

Inherits:
Object
  • Object
show all
Defined in:
lib/hbtrack/stat_formatter.rb

Instance Method Summary collapse

Instance Method Details

#format(hash) ⇒ String

Format in terms of the count of done and undone.

Parameters:

  • hash (Hash)

Options Hash (hash):

  • :done (String)

    total of done

  • :undone (String)

    total of undone

Returns:

  • (String)

    formatted result



12
13
14
15
# File 'lib/hbtrack/stat_formatter.rb', line 12

def format(hash)
  Util.green("Done: #{hash[:done]}") + "\n" +
    Util.red("Undone: #{hash[:undone]}")
end