A
Aa Aa
Hi,
I noticed that when I save an internet resource to my local disk, ruby
keeps the file open until the program terminates. After some searching I
noticed that close method should be called after you're done with the
writing part.
I checked the File class documentation at
http://ruby-doc.org/core/classes/File.html several times but there's not
trace of the close method. I assume that File inherits from another
class which actually contains the close method. I've also searched for
the parent class in the File documentation but couldn't find that
either.
So my question is: Where can I find the documentation on the File.close
method? If File actually is a subclass of another class then how is this
indicted in the documentation?
Regards,
DarnDao
I noticed that when I save an internet resource to my local disk, ruby
keeps the file open until the program terminates. After some searching I
noticed that close method should be called after you're done with the
writing part.
I checked the File class documentation at
http://ruby-doc.org/core/classes/File.html several times but there's not
trace of the close method. I assume that File inherits from another
class which actually contains the close method. I've also searched for
the parent class in the File documentation but couldn't find that
either.
So my question is: Where can I find the documentation on the File.close
method? If File actually is a subclass of another class then how is this
indicted in the documentation?
Regards,
DarnDao