Parent

Methods

Included Modules

Class Index [+]

Quicksearch

Gem::StreamUI::SimpleProgressReporter

A basic dotted progress reporter.

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 378
378:     def initialize(out_stream, size, initial_message,
379:                    terminal_message = "complete")
380:       @out = out_stream
381:       @total = size
382:       @count = 0
383:       @terminal_message = terminal_message
384: 
385:       @out.puts initial_message
386:     end

Public Instance Methods

done() click to toggle source

Prints out the terminal message.

     # File lib/rubygems/user_interaction.rb, line 400
400:     def done
401:       @out.puts "\n#{@terminal_message}"
402:     end
updated(message) click to toggle source

Prints out a dot and ignores message.

     # File lib/rubygems/user_interaction.rb, line 391
391:     def updated(message)
392:       @count += 1
393:       @out.print "."
394:       @out.flush
395:     end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.