class Object
Public Instance Methods
with_warnings(flag) { || ... }
click to toggle source
utility routine for swapping constants without warnings.
# File lib/softlayer/Service.rb, line 10 def with_warnings(flag) old_verbose, $VERBOSE = $VERBOSE, flag yield ensure $VERBOSE = old_verbose end