Flowdock
method

update

Importance_0
v1_9_3_392 - Show latest stable - 0 notes - Class: VerboseDownloadReporter
update(bytes) public

No documentation

This method has no description. You can help the Ruby community by adding new notes.

Hide source
# File lib/rubygems/user_interaction.rb, line 493
    def update(bytes)
      new_progress = if @units == 'B' then
                       bytes
                     else
                       ((bytes.to_f * 100) / total_bytes.to_f).ceil
                     end

      return if new_progress == @progress

      @progress = new_progress
      update_display
    end
Register or log in to add new notes.