Method: Red::Executable#hush_warnings
- Defined in:
- lib/red/executable.rb
#hush_warnings ⇒ Object
28 29 30 31 32 33 34 35 36 |
# File 'lib/red/executable.rb', line 28 def hush_warnings $stderr = File.open('spew', 'w') output = yield $stderr = $> File.delete('spew') return output end |