Module: Ritm::Utils
- Defined in:
- lib/ritm/helpers/utils.rb
Overview
Shortcuts and other utilities to be included in modules/classes
Class Method Summary collapse
-
.silence_warnings ⇒ Object
Runs a block of code without warnings.
Class Method Details
.silence_warnings ⇒ Object
Runs a block of code without warnings.
7 8 9 10 11 12 13 |
# File 'lib/ritm/helpers/utils.rb', line 7 def self.silence_warnings warn_level = $VERBOSE $VERBOSE = nil result = yield $VERBOSE = warn_level result end |