diff options
author | glass <glass@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-11-06 08:06:21 +0000 |
---|---|---|
committer | glass <glass@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-11-06 08:06:21 +0000 |
commit | 31f72cf518c58567a4f5daac64d990654d835ef8 (patch) | |
tree | 093ffc3181c504bdd423f8a5418218d3af644851 /ChangeLog | |
parent | e2418e3fcada21067b98032d514c34586f078b5b (diff) | |
download | ruby-31f72cf518c58567a4f5daac64d990654d835ef8.tar.gz |
* lib/tempfile.rb: fix confusing inspect.
previous Tempfile#inspect says it is a File, but actually
it is not a File.
t = Tempfile.new("foo") #=> #<File:/tmp/foo20121106-31970-1ffbum0>
t.is_a? File #=> false
now Tempfile#inspect returns like:
t = Tempfile.new("foo")
#=> #<Tempfile:/tmp/foo20121106-31970-1ffbum0>
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37492 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ChangeLog')
-rw-r--r-- | ChangeLog | 14 |
1 files changed, 14 insertions, 0 deletions
@@ -1,3 +1,17 @@ +Tue Nov 6 16:50:00 2012 Masaki Matsushita <glass.saga@gmail.com> + + * lib/tempfile.rb (Tempfile#inspect): fix confusing #inspect. + previous Tempfile#inspect says it is a File, but actually + it is not a File. + + t = Tempfile.new("foo") #=> #<File:/tmp/foo20121106-31970-1ffbum0> + t.is_a? File #=> false + + now Tempfile#inspect returns like: + + t = Tempfile.new("foo") + #=> #<Tempfile:/tmp/foo20121106-31970-1ffbum0> + Tue Nov 6 16:22:30 2012 Naohisa Goto <ngotogenome@gmail.com> * atomic.h: add #include <sys/atomic.h> for the workaround of |