Forum: Ruby A question about ruby-doc

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
7fbd0e99b27064b14793f028022974e5?d=identicon&s=25 Zhao Yi (youhaodeyi)
on 2008-12-04 08:05
I installed ruby-doc-stdlib-0.10.1 in my computer and open the index
file. I failed to show the method of String class. There are a lot of
packages in the left frame and I don't know which one contains string
class. How can I search in ruby doc?

thanks.
A74096209c78118ff69d50a51129d697?d=identicon&s=25 Jason Lillywhite (jlillywh)
on 2009-08-05 20:33
I often find myself not connected to the Internet and want to read
ruby-doc core and standard locally. What is the best way to get a local
copy of these libraries? I bet they come with the Ruby install, but I
have not been able to find them (running Ubuntu 9.03).
A74096209c78118ff69d50a51129d697?d=identicon&s=25 Jason Lillywhite (jlillywh)
on 2009-08-05 21:12
> I installed ruby-doc-stdlib-0.10.1 in my computer and open the index
> file. I failed to show the method of String class. There are a lot of
> packages in the left frame and I don't know which one contains string
> class. How can I search in ruby doc?

Well, I think I found the answer to your question. You downloaded the
Standard library, which does not contain String. You need to download
the Core library from this location:

http://www.ruby-doc.org/downloads/

Then under the words, "The 1.8.6 Base Distribution RDoc HTML"

click on the "tgz file" link.

That will give you the core library for viewing locally. In there, you
can search by class and find String.

Jason
58479f76374a3ba3c69b9804163f39f4?d=identicon&s=25 Eric Hodel (Guest)
on 2009-08-05 22:59
(Received via mailing list)
On Aug 5, 2009, at 12:12, Jason Lillywhite wrote:

>
> Then under the words, "The 1.8.6 Base Distribution RDoc HTML"
>
> click on the "tgz file" link.
>
> That will give you the core library for viewing locally. In there, you
> can search by class and find String.

Also, you can view RDoc for installed gems locally, see:

gem help server
7fbd0e99b27064b14793f028022974e5?d=identicon&s=25 Zhao Yi (youhaodeyi)
on 2009-08-06 03:04
Jason Lillywhite wrote:
> Well, I think I found the answer to your question. You downloaded the
> Standard library, which does not contain String. You need to download
> the Core library from this location:
>
> http://www.ruby-doc.org/downloads/
>
> Then under the words, "The 1.8.6 Base Distribution RDoc HTML"
>
> click on the "tgz file" link.
>
> That will give you the core library for viewing locally. In there, you
> can search by class and find String.
>
> Jason

Good. I saw that it is released on 06-30-2009.
BTW, do you know where I can download rails document?

thanks.
A74096209c78118ff69d50a51129d697?d=identicon&s=25 Jason Lillywhite (jlillywh)
on 2009-08-06 06:04
Zhao Yi wrote:

> Good. I saw that it is released on 06-30-2009.
> BTW, do you know where I can download rails document?

This looks promising... http://railsapi.com/

And I know documentation comes with the rails install. On my Ubuntu, I
can go to /usr/lib/ruby/gems/1.8/doc/ and find documentation for:

ActiveRecord
ActionPack
ActionMailer

and other gems you have installed.

Go into one of those folders and find the "index.html" file and open it.
You should find the classes you are looking for in the rdoc folder.

In Windows you can go find the ruby folder and should find the same
thing.
This topic is locked and can not be replied to.