diff options
author | David Vazgenovich Shakaryan <dvshakaryan@gmail.com> | 2009-08-01 13:15:44 -0700 |
---|---|---|
committer | David Vazgenovich Shakaryan <dvshakaryan@gmail.com> | 2009-08-01 13:15:44 -0700 |
commit | b97bca3602ae18a02774f8ae114a3a977049d43e (patch) | |
tree | 63e09410515142f35f7a1c9f61169263a21b4017 | |
parent | a5b89802ef7614b214e92a1e6b03ebc17e3557b5 (diff) | |
download | ruby-libmpd-b97bca3602ae18a02774f8ae114a3a977049d43e.tar.gz ruby-libmpd-b97bca3602ae18a02774f8ae114a3a977049d43e.tar.xz |
Update documentation.
-rw-r--r-- | libmpd.rb | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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('\\', '\\\\\\') |