Sha256: 6251f21478333f9521a3f5c940197f8b5ef13e8d4f53d87052b4eddef821589e
Contents?: true
Size: 208 Bytes
Versions: 2
Compression:
Stored size: 208 Bytes
Contents
module Warnings def self.silenced(&block) with_flag(nil, &block) end def self.with_flag(flag) old_verbose = $VERBOSE $VERBOSE = flag yield ensure $VERBOSE = old_verbose end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
pagerduty-2.1.2 | spec/support/warnings.rb |
pagerduty-2.1.1 | spec/support/warnings.rb |