Sha256: f346b154f7881af15661897555d49d95784873fd85c38c2f76bb106431b95f41
Contents?: true
Size: 318 Bytes
Versions: 10
Compression:
Stored size: 318 Bytes
Contents
module Kernel def silence_stdout_if(cond, &run) silence_stream_if(cond, STDOUT, &run) end def silence_stderr_if(cond, &run) silence_stream_if(cond, STDERR, &run) end def silence_stream_if(cond, stream, &run) if cond silence_stream(stream, &run) else run.call end end end
Version data entries
10 entries across 10 versions & 1 rubygems