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



21
22
23
# File 'lib/rubygems/mock_gem_ui.rb', line 21

def tty
  @tty
end

Instance Method Details

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

Yields:

  • (_self)

Yield Parameters:



28
29
30
# File 'lib/rubygems/mock_gem_ui.rb', line 28

def noecho
  yield self
end

#tty?Boolean

Returns:

  • (Boolean)


23
24
25
26
# File 'lib/rubygems/mock_gem_ui.rb', line 23

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