method

silence_stream

Importance_1
silence_stream(stream) public

Silences any stream for the duration of the block.

  silence_stream(STDOUT) do
    puts 'This will never be seen'
  end

  puts 'But this will'
Show source
Register or log in to add new notes.