lib/assetify/cli/term.rb in assetify-2.0.1 vs lib/assetify/cli/term.rb in assetify-3.0.0

- old
+ new

@@ -1,19 +1,21 @@ module Assetify - + # + # Command Line Interface + # class CLI def initialize(size = TSIZE) @size = size @chars = 0 end - def p txt + def p(txt) @chars += txt.size print txt end - def f txt, color = :green - puts "[#{txt}]".send(color).bold.rjust (TSIZE - @chars + 17) + def f(txt, color = :green) + puts "[#{txt}]".send(color).bold.rjust(TSIZE - @chars + 17) @chars = 0 end end end