Permalink
Browse files

Make 1.9 and 2.0 StringIO#puts print nil like other IO objects

  • Loading branch information...
1 parent 94f8c35 commit ff18a465fa3a2dae6a33e9fc81119e7751710aff @ashmoran committed Jan 20, 2013
Showing with 2 additions and 2 deletions.
  1. +1 −1 lib/19/stringio.rb
  2. +1 −1 lib/20/stringio.rb
View
@@ -357,7 +357,7 @@ def puts(*args)
else
args.each do |arg|
if arg.nil?
- line = "nil"
+ line = ""
elsif Thread.guarding? arg
line = "[...]"
else
View
@@ -357,7 +357,7 @@ def puts(*args)
else
args.each do |arg|
if arg.nil?
- line = "nil"
+ line = ""
elsif Thread.guarding? arg
line = "[...]"
else

0 comments on commit ff18a46

Please sign in to comment.