diff options
author | David Vazgenovich Shakaryan <dvshakaryan@gmail.com> | 2014-07-06 16:09:47 -0700 |
---|---|---|
committer | David Vazgenovich Shakaryan <dvshakaryan@gmail.com> | 2014-07-06 16:09:47 -0700 |
commit | 602cbf21d35ba898841cac0f3c458bd90b6b6841 (patch) | |
tree | 0d8b282562d866ff70d833666a383a50d6714f4e /libmpd/status.rb | |
parent | 4ebf4d0b5e8de5a79efa3811eb35ac8b85f26b07 (diff) | |
download | ruby-libmpd-602cbf21d35ba898841cac0f3c458bd90b6b6841.tar.gz ruby-libmpd-602cbf21d35ba898841cac0f3c458bd90b6b6841.tar.xz |
Style changes and simpler code.
Diffstat (limited to 'libmpd/status.rb')
-rw-r--r-- | libmpd/status.rb | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/libmpd/status.rb b/libmpd/status.rb index 52c937c..d11c6ca 100644 --- a/libmpd/status.rb +++ b/libmpd/status.rb @@ -1,7 +1,7 @@ #!/usr/bin/env ruby # #-- -# Copyright 2009 David Vazgenovich Shakaryan <dvshakaryan@gmail.com> +# Copyright 2009-2014 David Vazgenovich Shakaryan <dvshakaryan@gmail.com> # Distributed under the terms of the GNU General Public License v3. # See http://www.gnu.org/licenses/gpl.txt for the full license text. #++ @@ -13,21 +13,21 @@ module MPDStatus # Clears the error message in the status, if one exists. def clearerror - return send_request('clearerror') + send_request('clearerror') end # Returns information about the current song. def current - return generate_hash(send_request('currentsong')) + generate_hash(send_request('currentsong')) end # Returns daemon and database statistics. def stats - return generate_hash(send_request('stats')) + generate_hash(send_request('stats')) end # Returns the status. def status - return generate_hash(send_request('status')) + generate_hash(send_request('status')) end end |