An RDOC question

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

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Am 23.02.2012 17:47, schrieb Ruby S.:

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

Have fun!
Vale,
Marvin
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQEcBAEBAgAGBQJPRnHxAAoJELh1XLHFkqhaucMH/RVQ0flk4b9518lsD9dB/cPe
pHVwT8lpgGL1g/BmylHmakPhtl2viS/PVIBWohNdOvOMhXne4YOpvaV89rCD4GpR
2NAEdyPvDEuzFuiUjiNvz5jXHXe+pDPzYS4s+IwPCPIyLhbaPOqqGv//9kJQKONo
EO07Y8gsUCBwpvQNS5xfLE5NmTTT8fLt6Hhvga2F4c3i8zMJpRnwg1N0inAqfQqU
uHPQhwc19rUCvutaVHRhOapiK6wr2bYiQePl8THFdybYy1hc3obl3M85Wk9jpEjW
bJXK74hKoN7pG3M/nJ5tn+Gxu5Mq3wXvtwKSyrzw1BcOmqxjUek9a3q4CDBiJK4=
=Ooad
-----END PGP SIGNATURE-----

On Feb 23, 2012, at 08:47 , Ruby S. 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?

You can use ri as well…

ri Array
ri Array#join
ri join

works with gems and core library

Works like a charm!

Thank you