Sha256: 79914077fe9955492b0658d1dd69d5bc6bf2b2f3b1f2939624e010698b4804fe

Contents?: true

Size: 227 Bytes

Versions: 4

Compression:

Stored size: 227 Bytes

Contents

module Kernel
  # Suppresses any warnings raised in a specified block.
  def without_warnings
    old_verbose = $VERBOSE
    begin
      $VERBOSE = nil
      yield
    ensure
      $-v = old_verbose
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
tzinfo-0.3.10 test/test_utils.rb
tzinfo-0.3.11 test/test_utils.rb
tzinfo-0.3.12 test/test_utils.rb
tzinfo-0.3.9 test/test_utils.rb