Method: Spring::Application#with_pty
- Defined in:
- lib/spring/application.rb
#with_pty ⇒ Object
279 280 281 282 283 284 285 |
# File 'lib/spring/application.rb', line 279 def with_pty PTY.open do |master, slave| [STDOUT, STDERR, STDIN].each { |s| s.reopen slave } yield reset_streams end end |