Module: Kernel
- Defined in:
- lib/suppress-warnings.rb
Instance Method Summary collapse
Instance Method Details
#require_suppress(library) ⇒ Object
10 11 12 13 14 |
# File 'lib/suppress-warnings.rb', line 10 def require_suppress(library) suppress_warnings{ require library } end |
#suppress_warnings ⇒ Object
2 3 4 5 6 7 8 |
# File 'lib/suppress-warnings.rb', line 2 def suppress_warnings original_verbosity = $VERBOSE $VERBOSE = nil result = yield $VERBOSE = original_verbosity return result end |