You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by Apache Wiki <wi...@apache.org> on 2010/02/18 23:02:06 UTC

[Couchdb Wiki] Update of "Getting_started_with_Ruby" by RubyMate

Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Couchdb Wiki" for change notification.

The "Getting_started_with_Ruby" page has been changed by RubyMate.
http://wiki.apache.org/couchdb/Getting_started_with_Ruby?action=diff&rev1=2&rev2=3

--------------------------------------------------

  
    class Server
      def initialize(host, port, options = nil)
-       @host = host;
+       @host = host
-       @port = port;
+       @port = port
-       @options = options;
+       @options = options
      end
  
      def delete(uri)
@@ -41, +41 @@

      end
  
      def request(req)
-       res = Net::HTTP.start(@host, @port) {|http|
+       res = Net::HTTP.start(@host, @port) { |http|http.request(req) }
-         http.request(req)
-       }
        if (not res.kind_of?(Net::HTTPSuccess))
          handle_error(req, res)
        end