Class: BitClust::SilentProgressBar

Inherits:
Object
  • Object
show all
Defined in:
lib/bitclust/silent_progress_bar.rb

Overview

Null-object version of ProgressBar.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(title, total, out = $stderr) ⇒ SilentProgressBar

Returns a new instance of SilentProgressBar.


8
9
10
# File 'lib/bitclust/silent_progress_bar.rb', line 8

def initialize(title, total, out = $stderr)
  @title, @total, @out = title, total, out
end

Instance Attribute Details

#titleObject (readonly)

Returns the value of attribute title


6
7
8
# File 'lib/bitclust/silent_progress_bar.rb', line 6

def title
  @title
end

Instance Method Details

#finishObject


15
16
# File 'lib/bitclust/silent_progress_bar.rb', line 15

def finish
end

#inc(step = 1) ⇒ Object


12
13
# File 'lib/bitclust/silent_progress_bar.rb', line 12

def inc(step = 1)
end