Class Track
In: amarok.rb
Parent: Object

class for getting informations about current playing track.

Methods

new   text  

Public Class methods

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

Public Instance methods

Get text information about the track.

[Source]

# File amarok.rb, line 38
        def text
                return "Now is playing #@title by #@artist. Track #@number from album #@album"
        end

[Validate]