Method: ProgressBar#set
- Defined in:
- lib/autogg/progressbar.rb
#set(count) ⇒ Object
217 218 219 220 221 222 223 224 |
# File 'lib/autogg/progressbar.rb', line 217 def set (count) if count < 0 || count > @total raise "invalid count: #{count} (total: #{@total})" end @current = count show_if_needed @previous = @current end |