Sha256: b4244559093f1906f620d91cbb901308a6790efa91fe330ce26fad95422e3856

Contents?: true

Size: 317 Bytes

Versions: 31

Compression:

Stored size: 317 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

31 entries across 31 versions & 4 rubygems

Version Path
bootstrap-sass-3.2.0.4 test/support/reporting.rb
helio-0.1.12 test/support/reporting.rb
sc_core-0.0.7 test/dummy/vendor/bundle/ruby/2.2.0/gems/bootstrap-sass-3.3.5.1/test/support/reporting.rb
helio-0.1.11 test/support/reporting.rb
helio-0.1.10 test/support/reporting.rb
helio-0.1.9 test/support/reporting.rb
helio-0.1.8 test/support/reporting.rb
helio-0.1.7 test/support/reporting.rb
helio-0.1.6 test/support/reporting.rb
bootstrap-sass-3.3.5.1 test/support/reporting.rb
helio-0.0.1.5 test/support/reporting.rb
helio-0.0.1.4 test/support/reporting.rb
helio-0.0.1.3 test/support/reporting.rb
helio-0.0.1.2 test/support/reporting.rb
helio-0.0.1.1 test/support/reporting.rb
helio-0.0.1.0 test/support/reporting.rb
helio-0.0.0.9 test/support/reporting.rb
bootstrap-sass-3.3.5 test/support/reporting.rb
helio-0.0.0.8 test/support/reporting.rb
helio-0.0.0.7 test/support/reporting.rb