Class: TagLib::File Abstract

Inherits:
Object
  • Object
show all
Defined in:
docs/taglib/base.rb

Overview

This class is abstract.

Base class for files, see subclasses.

Direct Known Subclasses

MPEG::File, Ogg::File

Instance Method Summary collapse

Instance Method Details

#closevoid

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