rubywindowsdocumentationrdocri

Trying to find a reference to the manual but can't


Simple question, what is the best way on windows to search the documentation. This time I was wanting information on 'while'(resolved now by google) but I still can't can't get ri or the chm documentation on windows to give a result to while.

If I type in the Keyword in search in the chm it doesn't return 'while' it returns many results but not 'while' same for index search.

so In installed ri.

>rdoc --all --ri

but if I search while

C:\Ruby193\bin>ri 'while'
Nothing known about .while

I would like to read from the official results. Whats the best?

Also tried ri interactive but same result.

C:\Documents and Settings\renshaw>ri -i

Enter the method name you want to look up.
You can use tab to autocomplete.
Enter a blank line to exit.

>> while
Nothing known about .while
>>

Solution

  • That's because ri gives you information about methods, and not language syntax. while is Ruby's keyword, just like begin. If you try you won't find anything about begin in ri. Instead you can try ri File::read for example.