diff options
author | David Vazgenovich Shakaryan <dvshakaryan@gmail.com> | 2009-07-24 14:02:39 -0700 |
---|---|---|
committer | David Vazgenovich Shakaryan <dvshakaryan@gmail.com> | 2009-07-24 14:02:39 -0700 |
commit | edf4d1f22c4c4ff6dd8a7df288bb3d04dae1124d (patch) | |
tree | 9afd8b4cb78689192b9bad9f7e9baeb79d419f82 /libmpd/playbackoptions.rb | |
parent | a5ecf626566cc180c5a67ada6094614ddaed5b08 (diff) | |
download | ruby-libmpd-edf4d1f22c4c4ff6dd8a7df288bb3d04dae1124d.tar.gz ruby-libmpd-edf4d1f22c4c4ff6dd8a7df288bb3d04dae1124d.tar.xz |
PlaybackOptions: Use parentheses around arguments.
Diffstat (limited to 'libmpd/playbackoptions.rb')
-rw-r--r-- | libmpd/playbackoptions.rb | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/libmpd/playbackoptions.rb b/libmpd/playbackoptions.rb index 4a5386f..f9d39ec 100644 --- a/libmpd/playbackoptions.rb +++ b/libmpd/playbackoptions.rb @@ -16,8 +16,8 @@ module MPDPlaybackOptions # # Accepts an argument of +true+ to enable or +false+ to disable. # If no argument is given, defaults to +true+. - def consume state=true - return send_request 'consume %s' % state.to_i + def consume(state=true) + return send_request('consume %s' % state.to_i) end # Returns +true+ if consume is activated. @@ -28,8 +28,8 @@ module MPDPlaybackOptions end # Sets crossfading between songs. - def crossfade seconds - return send_request 'crossfade %s' % seconds + def crossfade(seconds) + return send_request('crossfade %s' % seconds) end # Returns the current crossfade setting as an integer. @@ -41,8 +41,8 @@ module MPDPlaybackOptions # # Accepts an argument of +true+ to enable or +false+ to disable. # If no argument is given, defaults to +true+. - def random state=true - return send_request 'random %s' % state.to_i + def random(state=true) + return send_request('random %s' % state.to_i) end # Returns +true+ if random is activated. @@ -56,8 +56,8 @@ module MPDPlaybackOptions # # Accepts an argument of +true+ to enable or +false+ to disable. # If no argument is given, defaults to +true+. - def repeat state=true - return send_request 'repeat %s' % state.to_i + def repeat(state=true) + return send_request('repeat %s' % state.to_i) end # Returns +true+ if repeat is activated. @@ -68,8 +68,8 @@ module MPDPlaybackOptions end # Sets volume from a range of 0 to 100. - def volume volume - return send_request 'setvol %s' % volume + def volume(volume) + return send_request('setvol %s' % volume) end # Returns the current volume as an integer. @@ -83,8 +83,8 @@ module MPDPlaybackOptions # # Accepts an argument of +true+ to enable or +false+ to disable. # If no argument is given, defaults to +true+. - def single state=true - return send_request 'single %s' % state.to_i + def single(state=true) + return send_request('single %s' % state.to_i) end # Returns +true+ if single is activated. |