1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* 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
This commit is contained in:
drbrain 2011-05-11 22:56:13 +00:00
parent 83d7aca7f6
commit 615e7987ca
7 changed files with 58 additions and 5 deletions

View file

@ -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?