summaryrefslogtreecommitdiff
path: root/libmpd.rb
diff options
context:
space:
mode:
authorDavid Vazgenovich Shakaryan <dvshakaryan@gmail.com>2009-08-01 13:15:44 -0700
committerDavid Vazgenovich Shakaryan <dvshakaryan@gmail.com>2009-08-01 13:15:44 -0700
commitb97bca3602ae18a02774f8ae114a3a977049d43e (patch)
tree63e09410515142f35f7a1c9f61169263a21b4017 /libmpd.rb
parenta5b89802ef7614b214e92a1e6b03ebc17e3557b5 (diff)
downloadruby-libmpd-b97bca3602ae18a02774f8ae114a3a977049d43e.tar.gz
ruby-libmpd-b97bca3602ae18a02774f8ae114a3a977049d43e.tar.xz
Update documentation.
Diffstat (limited to 'libmpd.rb')
-rw-r--r--libmpd.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/libmpd.rb b/libmpd.rb
index 7f6448d..00b5c16 100644
--- a/libmpd.rb
+++ b/libmpd.rb
@@ -44,13 +44,13 @@ class MPD
@port = port
end
- # Connect to the server.
+ # Connects to the server.
def connect
- # Connect to MPD and return response.
@socket = TCPSocket.new @host, @port
return @socket.gets.chomp
end
+ # Sends a command to the server and returns the response.
def send_request command
# Escape backslashes in command.
@socket.puts command.gsub('\\', '\\\\\\')