# Ri for stdlib

**URL:** <https://www.ruby-forum.com/t/ri-for-stdlib/93349>\
**Category:** Ruby\
**Created:** [March 31, 2006, 9:56am UTC](https://www.ruby-forum.com/t/ri-for-stdlib/93349 "2006-03-31T09:56:14Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![pool007](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/3bc359/32.png) [@pool007](https://www.ruby-forum.com/u/pool007)\
**Post date:** [March 31, 2006, 9:56am UTC](https://www.ruby-forum.com/t/ri-for-stdlib/93349/1 "2006-03-31T09:56:14Z")

</div>

Hi group.

I installed stable release of ruby ‘ruby 1.8.4 (2006-03-29)  
[i686-linux]’ in my linux box. But, when I try to run ri on stdlib, say  
Socket, it says ‘Nothing known about Socket.’ Running ‘ri Resolv’  
resulted in the same message.

I’ve searched this list, but I couldn’t find any solution but for one  
that recommends ‘[ruby-doc.org](http://ruby-doc.org)’ which, unfortunately, does not contain  
documentation for resolv.rb.

So, I loaded the source code of resolv.rb in vim and read the code and  
comments. Is this the best we can do? Is there no way to see  
documentaiton for stdlib conveniently?

Sincerely,  
Minkoo S.

---

<div class="post-metadata">

**Author:** ![pool007](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/3bc359/32.png) [@pool007](https://www.ruby-forum.com/u/pool007)\
**Post date:** [March 31, 2006, 10:23am UTC](https://www.ruby-forum.com/t/ri-for-stdlib/93349/2 "2006-03-31T10:23:30Z")

</div>

change the current directory to the source directory of ruby  
distribution,  
and then

> rdoc lib/\*\*/\*.rb

---

<div class="post-metadata">

**Author:** ![pool007](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/3bc359/32.png) [@pool007](https://www.ruby-forum.com/u/pool007)\
**Post date:** [March 31, 2006, 12:35pm UTC](https://www.ruby-forum.com/t/ri-for-stdlib/93349/3 "2006-03-31T12:35:16Z")

</div>

Thanks Eric.

I’ve tried the command, but I failed primarily because there’s no such  
things like ‘socket.rb’ Socket is written in C, I guess. So there’s no  
document. The same situation in resolv.rb. At this time, resolv.rb does  
not contain RDoc documents.

So, does all people in this group examine source codes of Ruby whenever  
they want to do something serious with stdlib?

Sincerely,  
Minkoo S.

---

<div class="post-metadata">

**Author:** ![pool007](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/3bc359/32.png) [@pool007](https://www.ruby-forum.com/u/pool007)\
**Post date:** [March 31, 2006, 2:35pm UTC](https://www.ruby-forum.com/t/ri-for-stdlib/93349/4 "2006-03-31T14:35:21Z")

</div>

Minkoo S. wrote:

> So, does all people in this group examine source codes of Ruby whenever  
> they want to do something serious with stdlib?

Some people take the time to create rdoc for undocumented libraries and  
contribute it to the community.

---

<div class="post-metadata">

**Author:** ![pool007](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/3bc359/32.png) [@pool007](https://www.ruby-forum.com/u/pool007)\
**Post date:** [March 31, 2006, 3:09pm UTC](https://www.ruby-forum.com/t/ri-for-stdlib/93349/5 "2006-03-31T15:09:16Z")

</div>

Tim. Please don’t be nervous. I am just curious what I’m doing is the  
best way of finding documents.

Yes. I know that some people, like the ones at [ruby-doc.org](http://ruby-doc.org), are doing  
lots of stuffs for documenting ruby and  
I appreciate their effort. As for me, I’m already doing some  
translations and posting articles in  
Korean ruby community to attract more programmers into the realm of  
Ruby.

Anyway, what you’ve said seem to confirm that there’s no solid  
documentation available for stdlib.  
Well. Disappointed a little bit.

Sincerely,  
Minkoo S.

---

<div class="post-metadata">

**Author:** ![pool007](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/3bc359/32.png) [@pool007](https://www.ruby-forum.com/u/pool007)\
**Post date:** [March 31, 2006, 9:29pm UTC](https://www.ruby-forum.com/t/ri-for-stdlib/93349/6 "2006-03-31T21:29:37Z")

</div>

On Mar 30, 2006, at 11:53 PM, Minkoo S. wrote:

> Hi group.
> 
> I installed stable release of ruby ‘ruby 1.8.4 (2006-03-29)  
> [i686-linux]’ in my linux box. But, when I try to run ri on stdlib,  
> say  
> Socket, it says ‘Nothing known about Socket.’ Running ‘ri Resolv’  
> resulted in the same message.

There is no RDoc for Resolv in 1.8. Only in HEAD.

It seems that Socket is not fully RDoc’d in 1.8. I didn’t check HEAD.

–  
Eric H. - removed\_email\_address@domain.invalid - [http://blog.segment7.net](http://blog.segment7.net)  
This implementation is HODEL-HASH-9600 compliant

[http://trackmap.robotcoop.com](http://trackmap.robotcoop.com)
