Sha256: 58d52687b7c1322bc327f39b1706ca87909055d51ae895707f4729609a05a238

Contents?: true

Size: 242 Bytes

Versions: 6

Compression:

Stored size: 242 Bytes

Contents

module Kernel

  # Sets $VERBOSE to true for the duration of the block
  # and back to its original value afterwards.

  def enable_warnings
    old_verbose, $VERBOSE = $VERBOSE, true
    yield
  ensure
    $VERBOSE = old_verbose
  end

end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
facets-1.8.51 lib/facets/core/kernel/enable_warnings.rb
facets-1.8.0 lib/facets/core/kernel/enable_warnings.rb
facets-1.8.20 lib/facets/core/kernel/enable_warnings.rb
facets-1.8.49 lib/facets/core/kernel/enable_warnings.rb
facets-1.8.8 lib/facets/core/kernel/enable_warnings.rb
facets-1.8.54 lib/facets/core/kernel/enable_warnings.rb