Class MusicExtras::Song
In: lib/musicextras/song.rb
Parent: DataAccessor

Holds and retrieves song information

Methods

Classes and Modules

Class MusicExtras::Song::InvalidTagException

Attributes

album  [RW] 
artist  [RW] 
title  [RW] 

Public Class methods

Create song from an mp3 tag

file
a String pointing to the tagged mp3

Throws Song::InvalidTagException if the mp3 doesn’t have a tag

Create song with an artist

title
a String containing the song title
artist
a String or Artist class containing the artist

Create song with an album

title
a String containing the song title
album
an Album class containing the album

Public Instance methods

Replaces the following values:

  • {TITLE}
  • {ARTIST}
  • {ALBUM}

[Validate]