Sha256: b4c89264d6d896d9d2a01916fda92abe8a66344865ed237bf9f804e236c73fed
Contents?: true
Size: 437 Bytes
Versions: 12
Compression:
Stored size: 437 Bytes
Contents
win = RubyText.window(10, 50, 0, 5, true, 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
12 entries across 12 versions & 1 rubygems