diff options
author | David Vazgenovich Shakaryan <dvshakaryan@gmail.com> | 2009-07-24 14:18:47 -0700 |
---|---|---|
committer | David Vazgenovich Shakaryan <dvshakaryan@gmail.com> | 2009-07-24 14:18:47 -0700 |
commit | 86d08df03202ac183c1f38b47765f2a4cfcafd72 (patch) | |
tree | dcf333693917b886121378e202ea6cd021a46a23 /libmpd | |
parent | 7ce1db1a0560bf3db0095a68390c06e3b8235f7e (diff) | |
download | ruby-libmpd-86d08df03202ac183c1f38b47765f2a4cfcafd72.tar.gz ruby-libmpd-86d08df03202ac183c1f38b47765f2a4cfcafd72.tar.xz |
Use nil rather than false for no song.
Diffstat (limited to 'libmpd')
-rw-r--r-- | libmpd/playbackcontrol.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libmpd/playbackcontrol.rb b/libmpd/playbackcontrol.rb index 8c47f0b..a9a3d96 100644 --- a/libmpd/playbackcontrol.rb +++ b/libmpd/playbackcontrol.rb @@ -33,7 +33,7 @@ module MPDPlaybackControl # Begins playing the playlist. If an argument is given, begins at the # specified song position. - def play(songpos=false) + def play(songpos=nil) command = 'play' command << ' %s' % songpos if songpos @@ -42,7 +42,7 @@ module MPDPlaybackControl # Begins playing the playlist. If an argument is given, begins at the # specified song id. - def playid(songid=false) + def playid(songid=nil) command = 'playid' command << ' %s' % songid if songid |