method

silence_stream

Importance_0
v7.1.3.4 - Show latest stable - 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 7
        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.