Class: TagLib::File Abstract
- Inherits:
-
Object
- Object
- TagLib::File
- Defined in:
- docs/taglib/base.rb
Overview
This class is abstract.
Base class for files, see subclasses.
Direct Known Subclasses
Instance Method Summary collapse
-
#close ⇒ void
Closes the file and releases all objects that were read from the file.
Instance Method Details
#close ⇒ void
This method returns an undefined value.
Closes the file and releases all objects that were read from the file.
After this method has been called, no other methods on this object may be called. So it's a good idea to always use it like this:
file.close
file = nil
This method should always be called as soon as you're finished with a file. Otherwise the file will only be closed when GC is run, which may be much later. On Windows, this is especially important as the file is locked until it is closed.
92 93 |
# File 'docs/taglib/base.rb', line 92 def close end |