In Files

  • ruby-3.1.2/lib/rubygems/user_interaction.rb

Parent

Methods

Files

Class/Module Index [+]

Quicksearch

Gem::SilentUI

SilentUI is a UI choice that is absolutely silent.

Public Class Methods

new() click to toggle source

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

 
               # File ruby-3.1.2/lib/rubygems/user_interaction.rb, line 618
def initialize
  reader, writer = nil, nil

  reader = File.open(IO::NULL, 'r')
  writer = File.open(IO::NULL, 'w')

  super reader, writer, writer, false
end
            

Public Instance Methods

close() click to toggle source
 
               # File ruby-3.1.2/lib/rubygems/user_interaction.rb, line 627
def close
  super
  @ins.close
  @outs.close
end