Method: Kennel::Console.capture_stderr
- Defined in:
- lib/kennel/console.rb
.capture_stderr ⇒ Object
43 44 45 46 47 48 49 50 |
# File 'lib/kennel/console.rb', line 43 def capture_stderr old = Kennel.err Kennel.err = StringIO.new yield Kennel.err.string ensure Kennel.err = old end |