module Nuggets::Object::SilenceMixin

Public Instance Methods

silence { ... } click to toggle source

Silence warnings for block execution.

# File lib/nuggets/object/silence_mixin.rb, line 35
def silence
  verbose, $VERBOSE = $VERBOSE, nil
  yield
ensure
  $VERBOSE = verbose
end