Method: Kernel#suppress_warnings
- Defined in:
- lib/nose/util.rb
#suppress_warnings ⇒ void
This method returns an undefined value.
Allow the suppression of warnings for a block of code
219 220 221 222 223 224 225 226 |
# File 'lib/nose/util.rb', line 219 def suppress_warnings original_verbosity = $VERBOSE $VERBOSE = nil result = yield $VERBOSE = original_verbosity result end |