Project

General

Profile

« Previous | Next » 

Revision 37492

Added by glass over 6 years ago

  • 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>