Sha256: 64f65e5ff025df49862cda23ea2f597d221e1d72dd9017b90bd05d0538241686

Contents?: true

Size: 338 Bytes

Versions: 1

Compression:

Stored size: 338 Bytes

Contents

module Assetify
  #
  # Command Line Interface
  #
  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

1 entries across 1 versions & 1 rubygems

Version Path
assetify-3.0.0 lib/assetify/cli/term.rb