How do you redefine your search in the following instance?
$ ri File#path
More than one method matched your request. You can refine
your search by asking for information on one of:
File#path, FileUtils#mkpath, File#path
$ ??
$ ruby -v
ruby 1.8.2 (2004-07-29) [powerpc-darwin7.5.0]
···
#########
File#path is not the only time this happens, for example String#unpack leads to the same situation.
I am using ri in bash with the following alias:
# ri alias
alias ri='ri -T'
##
I installed ruby from source using $./configure --enable-install-doc; make; sudo make install
The only other ruby package I have installed is racc.
-Charlie
Charles Mills wrote:
How do you redefine your search in the following instance?
$ ri File#path
More than one method matched your request. You can refine
your search by asking for information on one of:
File#path, FileUtils#mkpath, File#path
I've seen this sort of duplication on one of my Windows boxes where I've a history of installing/unintalling/reinstalling Ruby via the 1-click.
Look and to see if you have duplicate ri data sets in share/ri/1.8/site/ and share/ri/1.8/system/
Note that some data files may have the same name, but if they do they should have different parent directories.
You should have, for example,
share/ri/1.8/site/File/path-i.yaml
if File/path-i.yaml shows up someplace else as well, then ri gets confused.
James
Charles Mills wrote:
How do you redefine your search in the following instance?
$ ri File#path
More than one method matched your request. You can refine
your search by asking for information on one of:
File#path, FileUtils#mkpath, File#path
I've seen this sort of duplication on one of my Windows boxes where I've a history of installing/unintalling/reinstalling Ruby via the 1-click.
Look and to see if you have duplicate ri data sets in share/ri/1.8/site/ and share/ri/1.8/system/
Note that some data files may have the same name, but if they do they should have different parent directories.
You should have, for example,
share/ri/1.8/site/File/path-i.yaml
if File/path-i.yaml shows up someplace else as well, then ri gets confused.
Thanks! That worked.
Looks like I had some old files in ~/.rdoc
-Charlie
···
On Sep 7, 2004, at 12:38 PM, James Britt wrote:
James