Actions
Bug #6560
closedstdlib/ipaddr: IPSocket.valid? not defined as the documentation says
Description
The stdlib documentation of "ipaddr" for Ruby 1.9.3 and 1.9.1 both say there's a method IPSocket.valid?. But that's not the case. The same applies for the methods ::valid_ipv4? and ::valid_ipv6?.
Tested on the following two Ruby installations:
ruby 1.9.3p194 (2012-04-20 revision 35410) [x86_64-darwin11.3.0]
ruby 1.9.1p376 (2009-12-07 revision 26041) [x86_64-linux]
I had a look at the source file ipaddr.rb and it seems these methods are only defined in case Socket::AF_INET6 is not defined.
This doesn't make any sense in my opinion.
Thanks in advance.
Updated by drbrain (Eric Hodel) almost 12 years ago
- Category set to lib
- Status changed from Open to Assigned
- Assignee set to knu (Akinori MUSHA)
Updated by knu (Akinori MUSHA) over 6 years ago
- Status changed from Assigned to Closed
Looking back on history, the mentioned part had been removed one week before this issue was filed. (r35865)
Actions
Like0
Like0Like0