# An RDOC question

**URL:** <https://rubytalk.org/t/an-rdoc-question/64949>\
**Category:** ruby-talk\
**Created:** [23 February 2012 16:47 UTC](https://rubytalk.org/t/an-rdoc-question/64949 "2012-02-23T16:47:38Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ruby\_Student1](https://avatars.discourse-cdn.com/v4/letter/r/3da27b/32.png) [@Ruby\_Student1](https://rubytalk.org/u/Ruby_Student1)\
**Post date:** [23 February 2012 16:47 UTC](https://rubytalk.org/t/an-rdoc-question/64949/1 "2012-02-23T16:47:38Z")

</div>

When I install a gem I notice that the documentation (rdoc) is also  
installed.  
How do I invoke that rdoc document? Say I want to view the \*mechanize\* rdoc?

Thank you

> **···**
>
> --  
> Ruby Student

---

<div class="post-metadata">

**Author:** ![Marvin\_GA\_lker](https://avatars.discourse-cdn.com/v4/letter/m/e95f7d/32.png) [@Marvin\_GA\_lker](https://rubytalk.org/u/Marvin_GA_lker)\
**Post date:** [23 February 2012 17:07 UTC](https://rubytalk.org/t/an-rdoc-question/64949/2 "2012-02-23T17:07:12Z")

</div>

$ gem server

Then go to [http://localhost:8808](http://localhost:8808)

Have fun!  
Vale,  
Marvin

> **···**
>
> Am 23.02.2012 17:47, schrieb Ruby Student:
> 
> > When I install a gem I notice that the documentation (rdoc) is  
> > also installed. How do I invoke that rdoc document? Say I want to  
> > view the \*mechanize\* rdoc?
> > 
> > Thank you

---

<div class="post-metadata">

**Author:** ![Ryan\_Davis1](https://yyz1.discourse-cdn.com/flex029/user_avatar/rubytalk.org/ryan_davis1/32/1848_2.png) [@Ryan\_Davis1](https://rubytalk.org/u/Ryan_Davis1)\
**Post date:** [24 February 2012 02:37 UTC](https://rubytalk.org/t/an-rdoc-question/64949/3 "2012-02-24T02:37:16Z")

</div>

You can use ri as well...

ri Array  
ri Array#join  
ri join

works with gems and core library

> **···**
>
> On Feb 23, 2012, at 08:47 , Ruby Student wrote:
> 
> > When I install a gem I notice that the documentation (rdoc) is also installed.  
> > How do I invoke that rdoc document? Say I want to view the mechanize rdoc?

---

<div class="post-metadata">

**Author:** ![Ruby\_Student1](https://avatars.discourse-cdn.com/v4/letter/r/3da27b/32.png) [@Ruby\_Student1](https://rubytalk.org/u/Ruby_Student1)\
**Post date:** [23 February 2012 20:36 UTC](https://rubytalk.org/t/an-rdoc-question/64949/4 "2012-02-23T20:36:03Z")

</div>

Works like a charm!

Thank you

> **···**
>
> On Thu, Feb 23, 2012 at 12:07 PM, Quintus \<sutniuq@gmx.net\> wrote:
> 
> > -----BEGIN PGP SIGNED MESSAGE-----  
> > Hash: SHA1
> > 
> > Am 23.02.2012 17:47, schrieb Ruby Student:  
> > \> When I install a gem I notice that the documentation (rdoc) is  
> > \> also installed. How do I invoke that rdoc document? Say I want to  
> > \> view the \*mechanize\* rdoc?  
> > \>  
> > \> Thank you  
> > \>
> > 
> > $ gem server
> > 
> > Then go to [http://localhost:8808](http://localhost:8808)
> > 
> > Have fun!  
> > Vale,  
> > Marvin  
> > -----BEGIN PGP SIGNATURE-----  
> > Version: GnuPG v1.4.12 (GNU/Linux)  
> > Comment: Using GnuPG with Mozilla - [http://enigmail.mozdev.org/](http://enigmail.mozdev.org/)
> > 
> > iQEcBAEBAgAGBQJPRnHxAAoJELh1XLHFkqhaucMH/RVQ0flk4b9518lsD9dB/cPe  
> > pHVwT8lpgGL1g/BmylHmakPhtl2viS/PVIBWohNdOvOMhXne4YOpvaV89rCD4GpR  
> > 2NAEdyPvDEuzFuiUjiNvz5jXHXe+pDPzYS4s+IwPCPIyLhbaPOqqGv//9kJQKONo  
> > EO07Y8gsUCBwpvQNS5xfLE5NmTTT8fLt6Hhvga2F4c3i8zMJpRnwg1N0inAqfQqU  
> > uHPQhwc19rUCvutaVHRhOapiK6wr2bYiQePl8THFdybYy1hc3obl3M85Wk9jpEjW  
> > bJXK74hKoN7pG3M/nJ5tn+Gxu5Mq3wXvtwKSyrzw1BcOmqxjUek9a3q4CDBiJK4=  
> > =Ooad  
> > -----END PGP SIGNATURE-----
> 
> --  
> Ruby Student
