From: Wilson Bilkovich Date: 2008-07-08T14:22:38+09:00 Subject: Re: Where is the .rb for sockets? On 7/8/08, John Maclean wrote: > On Tue, 8 Jul 2008 08:46:25 +0900 > Joel VanderWerf wrote: > > > John Maclean wrote: > > > Normally I use `ri foo` whenever I want to read up on something. > > > There's also the ruby library, (/usr/lib/ruby/1.8), as there are > > > some goodies and clues in the comments. `locate foo.rb` normally > > > does it but in the case for TCPSocket, Socket and IPSocket there's > > > nothing to be found. Where is it hidden? > > > You are looking for 'socket.c', which can be found in the ext/socket directory: http://github.com/rubyspec/matzruby/tree/ebe2c2934c3fecfd4751eeeb256bf7293cdc9654/ext/socket/socket.c