summaryrefslogtreecommitdiff
path: root/libmpd/database.rb
diff options
context:
space:
mode:
authorDavid Vazgenovich Shakaryan <dvshakaryan@gmail.com>2014-07-06 16:09:47 -0700
committerDavid Vazgenovich Shakaryan <dvshakaryan@gmail.com>2014-07-06 16:09:47 -0700
commit602cbf21d35ba898841cac0f3c458bd90b6b6841 (patch)
tree0d8b282562d866ff70d833666a383a50d6714f4e /libmpd/database.rb
parent4ebf4d0b5e8de5a79efa3811eb35ac8b85f26b07 (diff)
downloadruby-libmpd-602cbf21d35ba898841cac0f3c458bd90b6b6841.tar.gz
ruby-libmpd-602cbf21d35ba898841cac0f3c458bd90b6b6841.tar.xz
Style changes and simpler code.
Diffstat (limited to 'libmpd/database.rb')
-rw-r--r--libmpd/database.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/libmpd/database.rb b/libmpd/database.rb
index e5f86b3..4249f5e 100644
--- a/libmpd/database.rb
+++ b/libmpd/database.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,7 +13,7 @@
module MPDDatabase
# Returns all directories.
# If an argument is specified, list all subdirectories of that directory.
- def directories(uri=nil)
+ def directories(uri = nil)
command = 'lsinfo'
command << ' "%s"' % uri if uri
@@ -41,7 +41,7 @@ module MPDDatabase
# Returns all files.
# If an argument is specified, list all files in that directory.
- def files(uri=nil)
+ def files(uri = nil)
command = 'lsinfo'
command << ' "%s"' % uri if uri
@@ -67,7 +67,7 @@ module MPDDatabase
# Updates the database.
# If an argument is given, update that particular file or directory.
- def update(uri=nil)
+ def update(uri = nil)
command = 'update'
command << ' "%s"' % uri if uri