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 415
415:     def initialize(out_stream, size, initial_message,
416:                    terminal_message = 'complete')
417:       @out = out_stream
418:       @total = size
419:       @count = 0
420:       @terminal_message = terminal_message
421: 
422:       @out.puts initial_message
423:     end

Public Instance Methods

done() click to toggle source

Prints out the terminal message.

     # File lib/rubygems/user_interaction.rb, line 436
436:     def done
437:       @out.puts @terminal_message
438:     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 428
428:     def updated(message)
429:       @count += 1
430:       @out.puts "#{@count}/#{@total}: #{message}"
431:     end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.