Parent

Methods

Included Modules

Class Index [+]

Quicksearch

Gem::StreamUI::VerboseProgressReporter

A progress reporter that prints out messages about the current progress.

Attributes

count[R]

Public Class Methods

new(out_stream, size, initial_message, terminal_message = 'complete') click to toggle source
     # File lib/rubygems/user_interaction.rb, line 389
389:     def initialize(out_stream, size, initial_message,
390:                    terminal_message = 'complete')
391:       @out = out_stream
392:       @total = size
393:       @count = 0
394:       @terminal_message = terminal_message
395: 
396:       @out.puts initial_message
397:     end

Public Instance Methods

done() click to toggle source

Prints out the terminal message.

     # File lib/rubygems/user_interaction.rb, line 410
410:     def done
411:       @out.puts @terminal_message
412:     end
updated(message) click to toggle source

Prints out the position relative to the total and the message.

     # File lib/rubygems/user_interaction.rb, line 402
402:     def updated(message)
403:       @count += 1
404:       @out.puts "#{@count}/#{@total}: #{message}"
405:     end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.