Sha256: 645ec8feb3bea65b91f29e1a6ef93c1df8f77534af24cd7ff5c733a333a0c4cd

Contents?: true

Size: 200 Bytes

Versions: 6

Compression:

Stored size: 200 Bytes

Contents

module Kernel
  if !self.methods.include?(:silence_warnings)
    def silence_warnings
      old_verbose, $VERBOSE = $VERBOSE, nil
      yield
    ensure
      $VERBOSE = old_verbose
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
em-synchrony-1.0.6 lib/em-synchrony/core_ext.rb
em-synchrony-1.0.5 lib/em-synchrony/core_ext.rb
em-synchrony-1.0.4 lib/em-synchrony/core_ext.rb
em-synchrony-1.0.3 lib/em-synchrony/core_ext.rb
em-synchrony-1.0.2 lib/em-synchrony/core_ext.rb
em-synchrony-1.0.1 lib/em-synchrony/core_ext.rb