Add command and invocation counts to header

This commit is contained in:
Kevin Sawicki
2013-01-04 16:36:14 -08:00
parent 65d13b5383
commit f78adfa060
3 changed files with 27 additions and 3 deletions

View File

@@ -63,6 +63,12 @@ _.mixin
capitalize: (word) ->
word[0].toUpperCase() + word[1..]
pluralize: (count=0, singular, plural=singular+'s') ->
if count is 1
"#{count} #{singular}"
else
"#{count} #{plural}"
losslessInvert: (hash) ->
inverted = {}
for key, value of hash