Module: Vagrant::Util::SilenceWarnings
- Defined in:
- lib/vagrant/util/silence_warnings.rb
Class Method Summary collapse
-
.silence! ⇒ Object
This silences any Ruby warnings.
Class Method Details
.silence! ⇒ Object
This silences any Ruby warnings.
8 9 10 11 12 13 14 |
# File 'lib/vagrant/util/silence_warnings.rb', line 8 def self.silence! original = $VERBOSE $VERBOSE = nil return yield ensure $VERBOSE = original end |