Method: Object#with_tty

Defined in:
lib/mspec/guards/tty.rb

#with_ttyObject



13
14
15
16
17
18
19
# File 'lib/mspec/guards/tty.rb', line 13

def with_tty
  g = TTYGuard.new
  g.name = :with_tty
  yield if g.yield?
ensure
  g.unregister
end