Method: Experiment::Notify.init
- Defined in:
- lib/experiment/notify.rb
.init(total, out = STDERR, growl = true, mode = :normal) ⇒ Object
initialize display
12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 |
# File 'lib/experiment/notify.rb', line 12 def init(total, out = STDERR, growl = true, mode = :normal) @curent_experiment = "" @current_cv = 0 @cv_prog = {} @total = total @out = out @terminal_width = 80 = "o" @current = 0 @previous = 0 @finished_p = false @start_time = Time.now @previous_time = @start_time @growl = growl @mode = mode show if @mode == :normal && @out end |