Sha256: cb55d8897c4d7b9ca375329e9e22b7b0ed038e7134d2ff651167dde6ddbfa7ef

Contents?: true

Size: 279 Bytes

Versions: 4

Compression:

Stored size: 279 Bytes

Contents

module Kernel
  def suppress_warnings
    original_verbosity = $VERBOSE
    $VERBOSE = nil
    result = yield
    $VERBOSE = original_verbosity
    return result
  end

  def require_suppress(library)
    suppress_warnings{
      require library
    }
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
ohm-zset-0.5 lib/suppress-warnings.rb
ohm-zset-0.4 lib/suppress-warnings.rb
ohm-zset-0.3 lib/suppress-warnings.rb
ohm-zset-0.2 lib/suppress-warnings.rb