Module: Gem::MockGemUi::TTY

Defined in:
lib/rubygems/mock_gem_ui.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#ttyObject

Returns the value of attribute tty


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

def tty
  @tty
end

Instance Method Details

#noecho {|_self| ... } ⇒ Object

Yields:

  • (_self)

Yield Parameters:


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

def noecho
  yield self
end

#tty?Boolean

Returns:

  • (Boolean)

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

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