Flowdock
method

silence_stream

Importance_0
Ruby on Rails latest stable (v5.2.3) - 0 notes - Class: Stream
silence_stream(stream) private

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# File activesupport/lib/active_support/testing/stream.rb, line 8
        def silence_stream(stream)
          old_stream = stream.dup
          stream.reopen(IO::NULL)
          stream.sync = true
          yield
        ensure
          stream.reopen(old_stream)
          old_stream.close
        end
Register or log in to add new notes.