Project

General

Profile

Actions

Bug #7027

closed

Tempfile#inspect is Confusing

Added by Glass_saga (Masaki Matsushita) over 12 years ago. Updated about 12 years ago.

Status:
Closed
Target version:
ruby -v:
ruby 2.0.0dev (2012-09-15 trunk 36975) [x86_64-linux]
Backport:
[ruby-core:47544]

Description

I think Tempfile#inspect is really confusing.
It says Tempfile object is a File, but it is not a File object.

% irb -r tempfile
irb(main):001:0> t = Tempfile.new("hoge")
=> #File:/tmp/hoge20120916-12354-uontdm
irb(main):002:0> t.is_a? File
=> false
irb(main):003:0>

see also (Japanese): http://r7kamura.hatenablog.com/entry/2012/09/05/194630


Files

patch.diff (337 Bytes) patch.diff Glass_saga (Masaki Matsushita), 09/16/2012 12:18 AM
Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0