Project

General

Profile

Actions

Bug #7027

closed

Tempfile#inspect is Confusing

Added by Glass_saga (Masaki Matsushita) almost 10 years ago. Updated over 9 years ago.

Status:
Closed
Priority:
Normal
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