Module: Gem::MockGemUi::TTY
- Defined in:
- lib/rubygems/mock_gem_ui.rb
Instance Attribute Summary collapse
-
#tty ⇒ Object
Returns the value of attribute tty.
Instance Method Summary collapse
Instance Attribute Details
#tty ⇒ Object
Returns the value of attribute tty.
33 34 35 |
# File 'lib/rubygems/mock_gem_ui.rb', line 33 def tty @tty end |
Instance Method Details
#noecho {|_self| ... } ⇒ Object
40 41 42 |
# File 'lib/rubygems/mock_gem_ui.rb', line 40 def noecho yield self end |
#tty? ⇒ Boolean
35 36 37 38 |
# File 'lib/rubygems/mock_gem_ui.rb', line 35 def tty?() @tty = true unless defined?(@tty) @tty end |