From: Stefano Crocco Date: 2007-07-01T23:30:05+09:00 Subject: Re: Given a class, what is the 'require' line? Alle domenica 1 luglio 2007, Swaroop C H ha scritto: > Hi all, > > If there's a class StringScanner, I run 'ri StringScanner' and read > the documentation on how to use it, but nowhere it mentions the > 'require' line needed, how do we usually find it out? I had to google > to find out that `require 'strscan'` is the line needed... > > When I asked about this on IRC, they said run ` egrep -r > 'StringScanner' /usr/lib/ruby/1.8`, but I was really hoping there's a > builtin way of doing it. > > Thanks, > Swaroop You can look at the online documentation (http://www.ruby-doc.org/core/) and at the standard library reference (http://www.ruby-doc.org/stdlib/). I hope this helps Stefano