class Croaky::Stream::StdErrStream
Standard error stream
Attributes
stderr_str_io[RW]
Public Instance Methods
capture_io()
click to toggle source
# File lib/croaky/stream/std_err_stream.rb, line 15 def capture_io self.stderr_str_io = StringIO.new $stderr = stderr_str_io end
read_captured_io()
click to toggle source
# File lib/croaky/stream/std_err_stream.rb, line 24 def read_captured_io [stderr_str_io.string] end
restore_io()
click to toggle source
# File lib/croaky/stream/std_err_stream.rb, line 20 def restore_io $stderr = STDERR end