Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

  • Loading branch information...
commit ff18a465fa3a2dae6a33e9fc81119e7751710aff 1 parent 94f8c35
Ash Moran authored
Showing with 2 additions and 2 deletions.
  1. +1 −1  lib/19/stringio.rb
  2. +1 −1  lib/20/stringio.rb
2  lib/19/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
2  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
Please sign in to comment.
Something went wrong with that request. Please try again.