class Anyplayer::Rhythmbox
Public Instance Methods
album()
click to toggle source
# File lib/anyplayer/players/rhythmbox.rb, line 44 def album rhythmbox "print-playing-format=%at" end
artist()
click to toggle source
# File lib/anyplayer/players/rhythmbox.rb, line 40 def artist rhythmbox "print-playing-format=%ta" end
launched?()
click to toggle source
# File lib/anyplayer/players/rhythmbox.rb, line 48 def launched? %x(rhythmbox-client --no-start --print-playing 2>/dev/null).rstrip != "" end
next()
click to toggle source
Calls superclass method
Anyplayer::Player#next
# File lib/anyplayer/players/rhythmbox.rb, line 19 def next rhythmbox "next" super end
pause()
click to toggle source
# File lib/anyplayer/players/rhythmbox.rb, line 10 def pause rhythmbox "pause" end
play()
click to toggle source
# File lib/anyplayer/players/rhythmbox.rb, line 6 def play rhythmbox "play" end
playpause()
click to toggle source
# File lib/anyplayer/players/rhythmbox.rb, line 2 def playpause rhythmbox "play-pause" end
prev()
click to toggle source
Calls superclass method
Anyplayer::Player#prev
# File lib/anyplayer/players/rhythmbox.rb, line 14 def prev rhythmbox "previous" super end
track()
click to toggle source
# File lib/anyplayer/players/rhythmbox.rb, line 36 def track rhythmbox "print-playing-format=%tt" end
voldown()
click to toggle source
# File lib/anyplayer/players/rhythmbox.rb, line 24 def voldown rhythmbox "volume-down" end
volume()
click to toggle source
# File lib/anyplayer/players/rhythmbox.rb, line 32 def volume rhythmbox "print-volume" end
volup()
click to toggle source
# File lib/anyplayer/players/rhythmbox.rb, line 28 def volup rhythmbox "volume-up" end
Private Instance Methods
rhythmbox(command)
click to toggle source
# File lib/anyplayer/players/rhythmbox.rb, line 54 def rhythmbox(command) %x(rhythmbox-client --no-start --#{command}).rstrip end