File: support.rb

package info (click to toggle)
ruby-bogus 0.1.7-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 844 kB
  • sloc: ruby: 4,237; makefile: 8; sh: 2
file content (11 lines) | stat: -rw-r--r-- 180 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
module Bogus
  module Support
    def self.supress_warnings
      old_verbose = $VERBOSE
      $VERBOSE = nil
      yield
    ensure
      $VERBOSE = old_verbose
    end
  end
end