Sha256: 49b917a2d6112ea54409d814bfc9146590115805dca581d9b7444100c68bddda
Contents?: true
Size: 303 Bytes
Versions: 3
Compression:
Stored size: 303 Bytes
Contents
module Assetify class CLI def initialize(size = TSIZE) @size = size @chars = 0 end def p txt @chars += txt.size print txt end def f txt, color = :green puts "[#{txt}]".send(color).bold.rjust (TSIZE - @chars + 17) @chars = 0 end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
assetify-2.0.1 | lib/assetify/cli/term.rb |
assetify-2.0.0 | lib/assetify/cli/term.rb |
assetify-1.0.0 | lib/assetify/cli/term.rb |