lib/polyfill/utils.rb in polyfill-0.6.0 vs lib/polyfill/utils.rb in polyfill-0.7.0

- old
+ new

@@ -1,8 +1,13 @@ module Polyfill module Utils - def when_ruby_below(version) - yield if RUBY_VERSION[/\A(\d+\.\d+)/, 1] < version + def ignore_warnings + orig = $VERBOSE + $VERBOSE = nil + + yield + + $VERBOSE = orig end - module_function :when_ruby_below + module_function :ignore_warnings end end