File.new returns an instance of IO
Reported by Kevin Clark | November 11th, 2007 @ 03:33 PM | in 1.0 preview
sisyphus:~/code/rbx kev$ ./shotgun/rubinius
sirb(eval):000> f = File.new('/tmp/temp', 'w')
=> #
sirb(eval):001> f.class
=> IO
File.new is hard defined (not using initialize) and returns the result of open_with_mode which calls the privative io_open.
Comments and changes to this ticket
-
Kevin Clark November 11th, 2007 @ 07:27 PM
- → State changed from new to resolved
Fixed in 2404bd0ad6
Please Login or create a free account to add a new comment.
You can update this ticket by sending an email to from your email client. (help)
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile »
