class CW::Progress

Public Class Methods

new(title) click to toggle source
# File lib/cw/progress.rb, line 8
def initialize(title)
  @title = title
end

Public Instance Methods

increment() click to toggle source
# File lib/cw/progress.rb, line 23
def increment
  @progress.increment
end
init(size) click to toggle source
# File lib/cw/progress.rb, line 12
def init size
  @progress =
    ProgressBar.
    create(total: size,
           title: 'Compiling',
           progress_mark: '.',
           length: 40,
           output: Print::ProgressPrint.new,
           format: "%t: |%B| %p% ")
end