Use of $stdin, $stdout, and $stderr globals makes testing difficult. By exposing the IO objects as writable attributes, input/output can be more easily simulated using StringIO or doubles.
Use of $stdin, $stdout, and $stderr globals makes testing difficult. By exposing the IO objects as writable attributes, input/output can be more easily simulated using StringIO or doubles.