Methods

Webrat::Selenium::SilenceStream

Public Instance Methods

silence_stream(stream) click to toggle source
# File lib/webrat/selenium/silence_stream.rb, line 7
def silence_stream(stream)
  old_stream = stream.dup
  stream.reopen(RUBY_PLATFORM =~ /mswin/ ? 'NUL:' : '/dev/null')
  stream.sync = true
  yield
ensure
  stream.reopen(old_stream)
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.