Class: Assetify::CLI
- Inherits:
-
Object
- Object
- Assetify::CLI
- Defined in:
- lib/assetify/cli/term.rb
Overview
Command Line Interface
Instance Method Summary collapse
- #f(txt, color = :green) ⇒ Object
-
#initialize(size = TSIZE) ⇒ CLI
constructor
A new instance of CLI.
- #p(txt) ⇒ Object
Constructor Details
Instance Method Details
#f(txt, color = :green) ⇒ Object
16 17 18 19 |
# File 'lib/assetify/cli/term.rb', line 16 def f(txt, color = :green) puts "[#{txt}]".send(color).bold.rjust(TSIZE - @chars + 17) @chars = 0 end |
#p(txt) ⇒ Object
11 12 13 14 |
# File 'lib/assetify/cli/term.rb', line 11 def p(txt) @chars += txt.size print txt end |