Sha256: 9b5f767d5a30ad8d318e4641e31036e1bc1a4717976a9a922263a10510bc162b

Contents?: true

Size: 303 Bytes

Versions: 6

Compression:

Stored size: 303 Bytes

Contents

module Assetify

  class TUI
    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

6 entries across 6 versions & 1 rubygems

Version Path
assetify-1.0.0.rc1 lib/assetify/tui/term.rb
assetify-0.7.0.rc1 lib/assetify/tui.rb
assetify-0.4.0 lib/assetify/tui.rb
assetify-0.3.0 lib/assetify/tui.rb
assetify-0.2.2 lib/assetify/tui.rb
assetify-0.2.1 lib/assetify/tui.rb