diff options
author | David Vazgenovich Shakaryan <dvshakaryan@gmail.com> | 2009-07-21 16:39:01 -0700 |
---|---|---|
committer | David Vazgenovich Shakaryan <dvshakaryan@gmail.com> | 2009-07-21 16:39:01 -0700 |
commit | c417cacd322a37be2e4e65cfeb5149cd6ddb0a1f (patch) | |
tree | 23421bddd3bf722084697490611051dcb92b2695 | |
parent | 435377c3c5d10724ffd7d1e6f1341107a3c27276 (diff) | |
download | ruby-libmpd-c417cacd322a37be2e4e65cfeb5149cd6ddb0a1f.tar.gz ruby-libmpd-c417cacd322a37be2e4e65cfeb5149cd6ddb0a1f.tar.xz |
Add seek method.
-rw-r--r-- | mpdlib.rb | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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 |