summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Vazgenovich Shakaryan <dvshakaryan@gmail.com>2009-07-21 16:13:46 -0700
committerDavid Vazgenovich Shakaryan <dvshakaryan@gmail.com>2009-07-21 16:13:46 -0700
commit27490478ea997bdc62b8d029a5317d7924023562 (patch)
tree9603bcb64b9c16493f5dd9184b1002344c0b30ee
parentff0ff2ac54d47123088c6819b62a2f72a7f61166 (diff)
downloadruby-libmpd-27490478ea997bdc62b8d029a5317d7924023562.tar.gz
ruby-libmpd-27490478ea997bdc62b8d029a5317d7924023562.tar.xz
Add ability to go to next and previous songs.
-rw-r--r--mpdlib.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/mpdlib.rb b/mpdlib.rb
index e1d3332..b452e9e 100644
--- a/mpdlib.rb
+++ b/mpdlib.rb
@@ -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