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



35
36
37
# File 'lib/rubygems/mock_gem_ui.rb', line 35

def tty
  @tty
end

Instance Method Details

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

Yields:

  • (_self)

Yield Parameters:



42
43
44
# File 'lib/rubygems/mock_gem_ui.rb', line 42

def noecho
  yield self
end

#tty?Boolean

Returns:

  • (Boolean)


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

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