Top Level Namespace

Includes:
Term::ANSIColor

Defined Under Namespace

Modules: SiteFuel, TerminalInfo Classes: Array, ColumnPrinter, File, FileTree, Object, String, Symbol

Instance Method Summary collapse

Instance Method Details

#silently(&block) ⇒ Object

this is sourced directly from vidyapsi.wordpress.com/category/ruby/#warnings



16
17
18
19
20
21
22
23
24
# File 'lib/sitefuel/extensions/Silently.rb', line 16

def silently(&block)
  warn_level = $VERBOSE
  $VERBOSE = nil

  result = block.call

  $VERBOSE = warn_level
  result
end