class for getting informations about current playing track.
Object initialization
[Source]
# File amarok.rb, line 28 def initialize @artist = `dcop amarok player artist` @title = `dcop amarok player title` @number = `dcop amarok player track` @album = `dcop amarok player album` end
Get text information about the track.
# File amarok.rb, line 38 def text return "Now is playing #@title by #@artist. Track #@number from album #@album" end
[Validate]