why are docs so out of date?

M

msoulier

Looking at the docs on http://www.ruby-lang.org/en/20020107.html, there
is a 1.4.6 reference manual, and a 1.6 library reference, while ruby is
up to 1.8.4.

Perl and Python don't seem to have this problem. As a newbie to Ruby
(hey, that rhymes), I find this rather frustrating.

Cheers,
Mike
 
G

gregarican

msoulier said:
Doesn't cut it.

For example, in the UDPSocket class, there is no mention of the send
method, but I'm told that it's there. That's just useless.

Mike

Are you sure that the #send method isn't there? FYI here are some
details regarding the UDPSocket class...

UDPSocket

UDP socket class

UDPSocket is a class for UDP (User Datagram Protocol), which is
connection-less, unreliable protocol.

Required Library

require 'socket'
Inherited Class

IPSocket

Class Methods

UDPSocket::new([socktype=Socket::AF_INET])
UDPSocket::eek:pen([socktype=Socket::AF_INET])
Creates a UDP datagram socket.

Instance Methods

s.bind(host, port)
Binds the socket to port on host. host may be empty string ("") for
INADDR_ANY, or "<broadcast>" for INADDR_BROADCAST.

s.connect(host, port)
Connects the socket to port on host. host may be empty string ("") for
INADDR_ANY, or "<broadcast>" for INADDR_BROADCAST.

s.send(mesg, flags[, to])
s.send(mesg, flags[, host, port])
Sends data on a socket s, returning the length of the data sent. If
only two arguments are specified, the destination is assumed to be the
port of the existing connection. Otherwise, it may be specified using a
struct sockaddr when calling the method with three arguments, or by
indicating host and port when specifying four arguments.
 
G

gregarican

M

msoulier

gregarican said:
Are you sure that the #send method isn't there? FYI here are some
details regarding the UDPSocket class...

Thanks. Pickaxe has it, but I guess it wasn't picked-up in the rdoc of
the source that ends up on ruby-doc.

Mike
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,744
Messages
2,569,482
Members
44,900
Latest member
Nell636132

Latest Threads

Top