summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Vazgenovich Shakaryan <dvshakaryan@gmail.com>2009-07-21 16:39:01 -0700
committerDavid Vazgenovich Shakaryan <dvshakaryan@gmail.com>2009-07-21 16:39:01 -0700
commitc417cacd322a37be2e4e65cfeb5149cd6ddb0a1f (patch)
tree23421bddd3bf722084697490611051dcb92b2695
parent435377c3c5d10724ffd7d1e6f1341107a3c27276 (diff)
downloadruby-libmpd-c417cacd322a37be2e4e65cfeb5149cd6ddb0a1f.tar.gz
ruby-libmpd-c417cacd322a37be2e4e65cfeb5149cd6ddb0a1f.tar.xz
Add seek method.
-rw-r--r--mpdlib.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/mpdlib.rb b/mpdlib.rb
index 8aaa90b..dc11bd1 100644
--- a/mpdlib.rb
+++ b/mpdlib.rb
@@ -85,4 +85,8 @@ class MPD
def previous
return send_request 'previous'
end
+
+ def seek songpos, time
+ return send_request 'seek %s %s' % [songpos, time]
+ end
end