Sha256: 396741d03d727ac8360e94bbb6c7ef485d39f5a338746f6a8f63901f95f2c14a
Contents?: true
Size: 430 Bytes
Versions: 16
Compression:
Stored size: 430 Bytes
Contents
win = RubyText.window(10, 50, 2, 15, fg: Yellow, bg: Blue) win.output do puts "Of course, #puts and #print are unaffected \nfor other receivers." out = File.new("/tmp/junk", "w") out.puts "Nothing to see here." sleep 2 print "\nHowever, if you print to STDOUT or STDERR \nwithout redirection, " STDOUT.print "you will have some " STDERR.print "unexpected/undefined results " puts " in more ways than one." end
Version data entries
16 entries across 16 versions & 1 rubygems