Oops.  The `puts` keyword is a bad example. :)

>> help puts

Errno::ENOENT: No such file or directory - /cdesc-::.yaml
	from /opt/local/lib/ruby/1.8/rdoc/ri/ri_reader.rb:54:in `initialize'
	from /opt/local/lib/ruby/1.8/rdoc/ri/ri_reader.rb:54:in `open'
	from /opt/local/lib/ruby/1.8/rdoc/ri/ri_reader.rb:54:in `get_class'
	from /opt/local/lib/ruby/1.8/rdoc/ri/ri_reader.rb:52:in `each'
---------------------------------------------------------- Class: String
     A +String+ object holds and manipulates an arbitrary sequence of
     bytes, typically representing characters. String objects may be
     created using +String::new+ or as literals.

     Because of aliasing issues, users of strings should be aware of the
     methods that modify the contents of a +String+ object. Typically,
     methods with names ending in ``!'' modify their receiver, while
     those without a ``!'' return a new +String+. However, there are
     exceptions, such as +String#[]=+.

------------------------------------------------------------------------
     Enhance the String class with a XML escaped character version of
     to_s.

------------------------------------------------------------------------
     Enhance the String class with a XML escaped character version of
     to_s.

------------------------------------------------------------------------
     Enhance the String class with a XML escaped character version of
     to_s.


I don't know why that error is there...but oh well.

--Jeremy

On Dec 27, 2007 9:24 AM, Santanu <thisissantanu / gmail.com> wrote:
> On Dec 27, 6:56 pm, Jeremy McAnally <jeremymcana... / gmail.com> wrote:
> > I believe you can use `help`.  For example:  help puts
> >
>
> First of all, thanks for your response.
> Yes, I did try things like 'help puts', but all I get are these error
> messages:
> -------------------------------------------
> irb(main):032:0> help puts
>
> No ri documentation found in:
>
> Was rdoc run to create documentation?
>
> Errno::ENOENT: No such file or directory - (null)
>         from /usr/lib/ruby/1.8/rdoc/usage.rb:100:in `initialize'
>         from /usr/lib/ruby/1.8/rdoc/usage.rb:100:in `open'
>         from /usr/lib/ruby/1.8/rdoc/usage.rb:100:in `usage_no_exit'
>         from /usr/lib/ruby/1.8/rdoc/usage.rb:93:in `usage'
>         from /usr/lib/ruby/1.8/rdoc/ri/ri_driver.rb:39:in
> `report_missing_documentation'
>         from /usr/lib/ruby/1.8/rdoc/ri/ri_driver.rb:25:in `initialize'
>         from /usr/lib/ruby/1.8/rubygems/custom_require.rb:27:in
> `gem_original_require'
>         from /usr/lib/ruby/1.8/rubygems/custom_require.rb:27:in `require'
>         from (eval):3:in `help'
>         from (irb):32
>         from (null):0
> irb(main):033:0>
> -------------------------------------
>
> I use Ubuntu 7.10, and I have already installed rdoc. I don't
> understand
> the error message much but it seems I have to do something else to
> make the help command work. Do I have to install ruby source and run
> rdoc through them?
>
> Regards,
> Santanu
>
>



-- 
http://www.jeremymcanally.com/

My books:
Ruby in Practice
http://www.manning.com/mcanally/

My free Ruby e-book
http://www.humblelittlerubybook.com/

My blogs:
http://www.mrneighborly.com/
http://www.rubyinpractice.com/