Parent

GemInstaller::OutputObserver

Attributes

stream[W]

Public Class Methods

new() click to toggle source

TODO: GemRunnerProxy should raise exception if listener still has any leftover output when run is invoked.

   # File lib/geminstaller/output_observer.rb, line 5
5:     def initialize
6:       @stream = :stdout
7:       @listeners = []
8:     end

Public Instance Methods

flush() click to toggle source
    # File lib/geminstaller/output_observer.rb, line 33
33:     def flush
34:     end
puts(output) click to toggle source
    # File lib/geminstaller/output_observer.rb, line 25
25:     def puts(output)
26:       print("#{output}\n")
27:     end
register(listener) click to toggle source
    # File lib/geminstaller/output_observer.rb, line 10
10:     def register(listener)
11:       listener = [listener] unless listener.is_a?(Array)
12:       @listeners += listener
13:     end
tty?() click to toggle source
    # File lib/geminstaller/output_observer.rb, line 29
29:     def tty?
30:       false
31:     end
unregister(listener) click to toggle source
    # File lib/geminstaller/output_observer.rb, line 15
15:     def unregister(listener)
16:       @listeners.delete(listener)
17:     end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.