Class: Gem::SilentUI

Inherits:
StreamUI
  • Object
show all
Defined in:
lib/rubygems/user_interaction.rb

Overview

SilentUI is a UI choice that is absolutely silent.

Defined Under Namespace

Classes: NullIO

Instance Method Summary collapse

Constructor Details

#initializeSilentUI

The SilentUI has no arguments as it does not use any stream.



611
612
613
614
# File 'lib/rubygems/user_interaction.rb', line 611

def initialize
  io = NullIO.new
  super io, io, io, false
end

Instance Method Details

#closeObject



616
617
# File 'lib/rubygems/user_interaction.rb', line 616

def close
end

#download_reporter(*args) ⇒ Object

:nodoc:



619
620
621
# File 'lib/rubygems/user_interaction.rb', line 619

def download_reporter(*args) # :nodoc:
  SilentDownloadReporter.new(@outs, *args)
end

#progress_reporter(*args) ⇒ Object

:nodoc:



623
624
625
# File 'lib/rubygems/user_interaction.rb', line 623

def progress_reporter(*args) # :nodoc:
  SilentProgressReporter.new(@outs, *args)
end