Class: TagLib::FileRef

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

Overview

This class allows to read basic tagging and audio properties from files, without having to know what the file type is. Thus, it works for all tagging formats that taglib supports, but only provides a minimal API.

Should you need more, use the file type specific classes, see subclasses of File.

Instance Method Summary collapse

Constructor Details

#initialize(filename, read_audio_properties = true, audio_properties_style = TagLib::AudioProperties::Average) ⇒ FileRef

Create a FileRef from a file name.



43
44
45
# File 'docs/taglib/base.rb', line 43

def initialize(filename, read_audio_properties=true,
               audio_properties_style=TagLib::AudioProperties::Average)
end

Instance Method Details

#audio_propertiesTagLib::AudioProperties



48
49
# File 'docs/taglib/base.rb', line 48

def audio_properties
end

#closevoid

This method returns an undefined value.

Closes the file and releases all objects that were read from the file.

See Also:



71
72
# File 'docs/taglib/base.rb', line 71

def close
end

#null?Boolean



52
53
# File 'docs/taglib/base.rb', line 52

def null?
end

#saveBoolean

Saves the file



58
59
# File 'docs/taglib/base.rb', line 58

def save
end

#tagTagLib::Tag



62
63
# File 'docs/taglib/base.rb', line 62

def tag
end