Logo: Relish

  1. Sign in

Project: Cute-print 0.2.0

Reset configuration

You can reset the configuration to its defaults.

Scenarios
Write to $stdout
Given
a file with:
require "cute_print"

CutePrint.configure { |c| c.out = $stdout }
q "abc"
CutePrint.configure { |c| c.reset }
q 123
Then
stdout should be
"abc"
And
stderr should be
123

Last published about 7 years ago by Wayne Conrad.