lib/nrb/utils.rb
# Supress STDOUT for the duration of the block.
Supress STDOUT for the duration of the block.
Supress STDOUT for the duration of the block .
def silently
      original = $stdout.dup
      $stdout.reopen(File::NULL)
      yield
      $stdout.reopen(original)
    end
def silently original = $stdout . dup $stdout . reopen ( File :: NULL ) yield $stdout . reopen ( original ) end
Supress STDOUT for the duration of the block.
Supress STDOUT for the duration of the block .