Ri missing some system libraries

C

Charles Comstock

What exactly should / shouldn't Ri be missing? I assumed stuff like TCPSocket
would be listed, but in my stable snapshot of 1.8.1 from earlier this week, I
get no Ri reference to those classes, despite if I remember correctly, some
documentation from them existing in the Programming Ruby book.
Charles Comstock
 
G

Gavin Sinclair

What exactly should / shouldn't Ri be missing? I assumed stuff like
TCPSocket would be listed, but in my stable snapshot of 1.8.1 from
earlier this week, I get no Ri reference to those classes, despite if I
remember correctly, some documentation from them existing in the
Programming Ruby book.
Charles Comstock

TCPSocket is not "core API"; it's "standard library". 'ri' attempts to
document both categories using the source code. The code for TCPSocket is
in ext/socket/socket.c, which has no documentation at all in it.

RDoc uses certain heuristics to understand C files. If classes and
methods are not defined in a certain (common) way, then RDoc won't pick
them up unless you give explicit comments like

/*
* Document-class: TCPSocket
*
* TCPSocket is a ...
*/

I think the whole core API has been documented. The standard library,
however, is large and progress is slow. I just finished strscan, which
has excellent (but incomplete) documentation in RD form. All up, it took
me about 10 hours to properly document the source code.

Could you please visit OnlineDocumentationIssues on the Wiki to report
TCPSocket and other classes you notice to be missing?

Cheers,
Gavin
 

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,769
Messages
2,569,580
Members
45,055
Latest member
SlimSparkKetoACVReview

Latest Threads

Top