Class
SilentUI
is a UI choice that is absolutely silent.
Class Methods
::
lib/rubygems/user_interaction.rb
View on GitHub
# File tmp/rubies/ruby-2.3.8/lib/rubygems/user_interaction.rb, line 676
def initialize
reader, writer = nil, nil
begin
reader = File.open('/dev/null', 'r')
writer = File.open('/dev/null', 'w')
rescue Errno::ENOENT
reader = File.open('nul', 'r')
writer = File.open('nul', 'w')
end
super reader, writer, writer, false
end
The SilentUI
has no arguments as it does not use any stream.
Instance Methods
#
lib/rubygems/user_interaction.rb
View on GitHub
# File tmp/rubies/ruby-2.3.8/lib/rubygems/user_interaction.rb, line 690
def close
super
@ins.close
@outs.close
end
No documentation available