From 602cbf21d35ba898841cac0f3c458bd90b6b6841 Mon Sep 17 00:00:00 2001 From: David Vazgenovich Shakaryan Date: Sun, 6 Jul 2014 16:09:47 -0700 Subject: Style changes and simpler code. --- libmpd/database.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'libmpd/database.rb') 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 +# Copyright 2009-2014 David Vazgenovich Shakaryan # 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 -- cgit v1.2.3-70-g09d2