diff options
author | David Vazgenovich Shakaryan <dvshakaryan@gmail.com> | 2009-07-21 16:13:46 -0700 |
---|---|---|
committer | David Vazgenovich Shakaryan <dvshakaryan@gmail.com> | 2009-07-21 16:13:46 -0700 |
commit | 27490478ea997bdc62b8d029a5317d7924023562 (patch) | |
tree | 9603bcb64b9c16493f5dd9184b1002344c0b30ee /mpdlib.rb | |
parent | ff0ff2ac54d47123088c6819b62a2f72a7f61166 (diff) | |
download | ruby-libmpd-27490478ea997bdc62b8d029a5317d7924023562.tar.gz ruby-libmpd-27490478ea997bdc62b8d029a5317d7924023562.tar.xz |
Add ability to go to next and previous songs.
Diffstat (limited to 'mpdlib.rb')
-rw-r--r-- | mpdlib.rb | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -59,4 +59,12 @@ class MPD def stats return generate_hash send_request 'stats' end + + def next + return send_request 'next' + end + + def previous + return send_request 'previous' + end end |