From 615e7987ca619a9d8df01844b61d95796b95fd19 Mon Sep 17 00:00:00 2001 From: drbrain Date: Wed, 11 May 2011 22:56:13 +0000 Subject: * object.c (rb_obj_equal): Add documentation. Patch by Vincent Batts. [Ruby 1.9 - Bug #4664] * lib/rexml: ditto * lib/mkmf.rb: ditto * ext/socket/lib/socket.rb: ditto git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31525 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ext/socket/lib/socket.rb | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'ext') diff --git a/ext/socket/lib/socket.rb b/ext/socket/lib/socket.rb index d7bd760729..8898b51b47 100644 --- a/ext/socket/lib/socket.rb +++ b/ext/socket/lib/socket.rb @@ -29,7 +29,13 @@ class Addrinfo end end - def connect_internal(local_addrinfo) + # creates a new Socket connected to the address of +local_addrinfo+. + # + # If no arguments are given, the address of the socket is not bound. + # + # If a block is given the created socket is yielded for each address. + # + def connect_internal(local_addrinfo) # :yields: socket sock = Socket.new(self.pfamily, self.socktype, self.protocol) begin sock.ipv6only! if self.ipv6? -- cgit v1.2.3