Class: TagLib::Tag Abstract

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

Overview

This class is abstract.

Base class for tags.

This is a unified view which provides basic tag information, which is common in all tag formats. See subclasses for functionality that goes beyond this interface.

Direct Known Subclasses

ID3v1::Tag, ID3v2::Tag, MP4::Tag, Ogg::XiphComment

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#albumString?

Returns:

  • (String)

    the album

  • (nil)

    if not present


212
213
214
# File 'docs/taglib/base.rb', line 212

def album
  @album
end

#artistString?

Returns:

  • (String)

    the artist/interpret

  • (nil)

    if not present


216
217
218
# File 'docs/taglib/base.rb', line 216

def artist
  @artist
end

#commentString?

Returns:

  • (String)

    the comment

  • (nil)

    if not present


220
221
222
# File 'docs/taglib/base.rb', line 220

def comment
  @comment
end

#genreString?

Returns:

  • (String)

    the genre

  • (nil)

    if not present


224
225
226
# File 'docs/taglib/base.rb', line 224

def genre
  @genre
end

#titleString?

Returns:

  • (String)

    the title

  • (nil)

    if not present


228
229
230
# File 'docs/taglib/base.rb', line 228

def title
  @title
end

#trackInteger, 0

Returns:

  • (Integer)

    the track number

  • (0)

    if not present


232
233
234
# File 'docs/taglib/base.rb', line 232

def track
  @track
end

#yearInteger, 0

Returns:

  • (Integer)

    the year

  • (0)

    if not present


236
237
238
# File 'docs/taglib/base.rb', line 236

def year
  @year
end

Instance Method Details

#empty?Boolean

Returns:

  • (Boolean)

239
# File 'docs/taglib/base.rb', line 239

def empty?; end