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



209
210
211
# File 'docs/taglib/base.rb', line 209

def album
  @album
end

#artistString?

Returns:

  • (String)

    the artist/interpret

  • (nil)

    if not present



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

def artist
  @artist
end

#commentString?

Returns:

  • (String)

    the comment

  • (nil)

    if not present



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

def comment
  @comment
end

#genreString?

Returns:

  • (String)

    the genre

  • (nil)

    if not present



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

def genre
  @genre
end

#titleString?

Returns:

  • (String)

    the title

  • (nil)

    if not present



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

def title
  @title
end

#trackInteger, 0

Returns:

  • (Integer)

    the track number

  • (0)

    if not present



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

def track
  @track
end

#yearInteger, 0

Returns:

  • (Integer)

    the year

  • (0)

    if not present



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

def year
  @year
end

Instance Method Details

#empty?Boolean

Returns:

  • (Boolean)


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

def empty?; end