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 352
352:     def initialize(out_stream, size, initial_message,
353:                    terminal_message = "complete")
354:       @out = out_stream
355:       @total = size
356:       @count = 0
357:       @terminal_message = terminal_message
358: 
359:       @out.puts initial_message
360:     end

Public Instance Methods

done() click to toggle source

Prints out the terminal message.

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

Prints out a dot and ignores message.

     # File lib/rubygems/user_interaction.rb, line 365
365:     def updated(message)
366:       @count += 1
367:       @out.print "."
368:       @out.flush
369:     end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.