Class: Silently
- Inherits:
-
Object
- Object
- Silently
- Defined in:
- lib/tpkg/silently.rb
Overview
Class Method Summary collapse
Class Method Details
.silently(&block) ⇒ Object
3 4 5 6 7 8 9 |
# File 'lib/tpkg/silently.rb', line 3 def self.silently(&block) warn_level = $VERBOSE $VERBOSE = nil result = block.call $VERBOSE = warn_level result end |