Class: TagLib::Tag
- Inherits:
-
Object
- Object
- TagLib::Tag
- Defined in:
- lib/TagLib_doc.rb
Overview
A simple, generic interface to common audio meta data fields. .
This is an attempt to abstract away the difference in the meta data formats of various audio codecs and tagging schemes. As such it is generally a subset of what is available in the specific formats but should be suitable for most applications. This is meant to compliment the generic APIs found in TagLib::AudioProperties, TagLib::File and TagLib::FileRef.
Direct Known Subclasses
Instance Method Summary collapse
-
#album ⇒ Object
Returns the album name; if no album name is present in the tag String::null will be returned.
- #album= ⇒ Object
-
#artist ⇒ Object
Returns the artist name; if no artist name is present in the tag String::null will be returned.
- #artist= ⇒ Object
-
#comment ⇒ Object
Returns the track comment; if no comment is present in the tag String::null will be returned.
- #comment= ⇒ Object
- #empty? ⇒ Boolean
-
#genre ⇒ Object
Returns the genre name; if no genre is present in the tag String::null will be returned.
- #genre= ⇒ Object
-
#isEmpty ⇒ Object
Returns true if the tag does not contain any data.
-
#setAlbum(s) ⇒ Object
Sets the album to s.
-
#setArtist(s) ⇒ Object
Sets the artist to s.
-
#setComment(s) ⇒ Object
Sets the comment to s.
-
#setGenre(s) ⇒ Object
Sets the genre to s.
-
#setTitle(s) ⇒ Object
Sets the title to s.
-
#setTrack(i) ⇒ Object
Sets the track to i.
-
#setYear(i) ⇒ Object
Sets the year to i.
-
#title ⇒ Object
Returns the track name; if no track name is present in the tag String::null will be returned.
- #title= ⇒ Object
-
#track ⇒ Object
Returns the track number; if there is no track number set, this will return 0.
- #track= ⇒ Object
-
#year ⇒ Object
Returns the year; if there is no year set, this will return 0.
- #year= ⇒ Object
Instance Method Details
#album ⇒ Object
Returns the album name; if no album name is present in the tag String::null will be returned.
284 285 |
# File 'lib/TagLib_doc.rb', line 284 def album() end |
#album= ⇒ Object
286 287 |
# File 'lib/TagLib_doc.rb', line 286 def album=() end |
#artist ⇒ Object
Returns the artist name; if no artist name is present in the tag String::null will be returned.
256 257 |
# File 'lib/TagLib_doc.rb', line 256 def artist() end |
#artist= ⇒ Object
260 261 |
# File 'lib/TagLib_doc.rb', line 260 def artist=() end |
#comment ⇒ Object
Returns the track comment; if no comment is present in the tag String::null will be returned.
270 271 |
# File 'lib/TagLib_doc.rb', line 270 def comment() end |
#comment= ⇒ Object
277 278 |
# File 'lib/TagLib_doc.rb', line 277 def comment=() end |
#empty? ⇒ Boolean
279 280 |
# File 'lib/TagLib_doc.rb', line 279 def empty?() end |
#genre ⇒ Object
Returns the genre name; if no genre is present in the tag String::null will be returned.
301 302 |
# File 'lib/TagLib_doc.rb', line 301 def genre() end |
#genre= ⇒ Object
303 304 |
# File 'lib/TagLib_doc.rb', line 303 def genre=() end |
#isEmpty ⇒ Object
Returns true if the tag does not contain any data. This should be reimplemented in subclasses that provide more than the basic tagging abilities in this class.
296 297 |
# File 'lib/TagLib_doc.rb', line 296 def isEmpty() end |
#setAlbum(s) ⇒ Object
Sets the album to s. If s is String::null then this value will be cleared.
291 292 |
# File 'lib/TagLib_doc.rb', line 291 def setAlbum(s) end |
#setArtist(s) ⇒ Object
Sets the artist to s. If s is String::null then this value will be cleared.
265 266 |
# File 'lib/TagLib_doc.rb', line 265 def setArtist(s) end |
#setComment(s) ⇒ Object
Sets the comment to s. If s is String::null then this value will be cleared.
308 309 |
# File 'lib/TagLib_doc.rb', line 308 def setComment(s) end |
#setGenre(s) ⇒ Object
Sets the genre to s. If s is String::null then this value will be cleared. For tag formats that use a fixed set of genres, the appropriate value will be selected based on a string comparison. A list of available genres for those formats should be available in that type's implementation.
229 230 |
# File 'lib/TagLib_doc.rb', line 229 def setGenre(s) end |
#setTitle(s) ⇒ Object
Sets the title to s. If s is String::null then this value will be cleared.
241 242 |
# File 'lib/TagLib_doc.rb', line 241 def setTitle(s) end |
#setTrack(i) ⇒ Object
Sets the track to i. If s is 0 then this value will be cleared.
275 276 |
# File 'lib/TagLib_doc.rb', line 275 def setTrack(i) end |
#setYear(i) ⇒ Object
Sets the year to i. If s is 0 then this value will be cleared.
251 252 |
# File 'lib/TagLib_doc.rb', line 251 def setYear(i) end |
#title ⇒ Object
Returns the track name; if no track name is present in the tag String::null will be returned.
234 235 |
# File 'lib/TagLib_doc.rb', line 234 def title() end |
#title= ⇒ Object
236 237 |
# File 'lib/TagLib_doc.rb', line 236 def title=() end |
#track ⇒ Object
Returns the track number; if there is no track number set, this will return 0.
313 314 |
# File 'lib/TagLib_doc.rb', line 313 def track() end |
#track= ⇒ Object
224 225 |
# File 'lib/TagLib_doc.rb', line 224 def track=() end |
#year ⇒ Object
Returns the year; if there is no year set, this will return 0.
246 247 |
# File 'lib/TagLib_doc.rb', line 246 def year() end |
#year= ⇒ Object
258 259 |
# File 'lib/TagLib_doc.rb', line 258 def year=() end |