From b97bca3602ae18a02774f8ae114a3a977049d43e Mon Sep 17 00:00:00 2001 From: David Vazgenovich Shakaryan Date: Sat, 1 Aug 2009 13:15:44 -0700 Subject: Update documentation. --- libmpd.rb | 4 ++-- 1 file 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('\\', '\\\\\\') -- cgit v1.2.3-70-g09d2