Top Level Namespace

Defined Under Namespace

Modules: SoftLayer Classes: Array, Hash, String, Symbol

Instance Method Summary collapse

Instance Method Details

#with_warnings(flag) ⇒ Object

utility routine for swapping constants without warnings.



10
11
12
13
14
15
# File 'lib/softlayer/Service.rb', line 10

def with_warnings(flag)
  old_verbose, $VERBOSE = $VERBOSE, flag
  yield
ensure
  $VERBOSE = old_verbose
end