123456789_123456789_123456789_123456789_123456789_

Module: Gem::MockGemUi::TTY

Relationships & Source Files
Defined in: lib/rubygems/mock_gem_ui.rb

Instance Attribute Summary

Instance Method Summary

Instance Attribute Details

#tty (rw)

[ GitHub ]

  
# File 'lib/rubygems/mock_gem_ui.rb', line 31

attr_accessor :tty

Instance Method Details

#noecho {|_self| ... }

Yields:

  • (_self)

Yield Parameters:

  • _self (TTY)

    the object that the method was called on

[ GitHub ]

  
# File 'lib/rubygems/mock_gem_ui.rb', line 38

def noecho
  yield self
end

#tty?Boolean (rw)

[ GitHub ]

  
# File 'lib/rubygems/mock_gem_ui.rb', line 33

def tty?()
  @tty = true unless defined?(@tty)
  @tty
end