Convenience methods for Mpd/Moc state
commit3c1ca741d9608a756499a1fc95081b82395f5e08
authorDag Odenhall <dag.odenhall@gmail.com>
Wed, 23 Apr 2008 13:48:21 +0000 (23 15:48 +0200)
committerDag Odenhall <dag.odenhall@gmail.com>
Wed, 23 Apr 2008 13:48:21 +0000 (23 15:48 +0200)
tree9d7e1ae5fb698abebad7e2461e7458832b879635
parentf2556a525292bc59967a73ea56686c046966fefe
Convenience methods for Mpd/Moc state

Allows for shortcuts in formats like:

@default if playing?

* lib/amazing/widgets/moc.rb: (playing?) boolean play state.
(paused?) boolean pause state.
(stopped?) boolean stop state.

* lib/amazing/widgets/mpd.rb: (playing?) boolean play state.
(paused?) boolean pause state.
(stopped?) boolean stop state.
lib/amazing/widgets/moc.rb
lib/amazing/widgets/mpd.rb