Class: Gem::SilentUI::NullIO

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

Overview

An absolutely silent IO.

Instance Method Summary collapse

Instance Method Details

#flushObject



640
641
# File 'lib/rubygems/user_interaction.rb', line 640

def flush
end

#gets(*args) ⇒ Object



643
644
# File 'lib/rubygems/user_interaction.rb', line 643

def gets(*args)
end


637
638
# File 'lib/rubygems/user_interaction.rb', line 637

def print(*args)
end

#puts(*args) ⇒ Object



634
635
# File 'lib/rubygems/user_interaction.rb', line 634

def puts(*args)
end

#tty?Boolean

Returns:

  • (Boolean)


646
647
648
# File 'lib/rubygems/user_interaction.rb', line 646

def tty?
  false
end