# Ri search question

**URL:** <https://www.ruby-forum.com/t/ri-search-question/79253>\
**Category:** Ruby\
**Created:** [December 13, 2006, 5:02pm UTC](https://www.ruby-forum.com/t/ri-search-question/79253 "2006-12-13T17:02:11Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![alex-osu3](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/13edae/32.png) [@alex-osu3](https://www.ruby-forum.com/u/alex-osu3)\
**Post date:** [December 13, 2006, 5:02pm UTC](https://www.ruby-forum.com/t/ri-search-question/79253/1 "2006-12-13T17:02:11Z")

</div>

Hi all,

I try to find a methed(File.basename) using ri but it doesn’t work. Any  
comments?

Thanks,

Li

# 

C:\>ri File.basename  
More than one method matched your request. You can refine  
your search by asking for information on one of:

```
 File::basename, File::basename

```

C:\>ri File::basename  
More than one method matched your request. You can refine  
your search by asking for information on one of:

```
 File::basename, File::basename

```

C:\>

---

<div class="post-metadata">

**Author:** ![alex-osu3](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/13edae/32.png) [@alex-osu3](https://www.ruby-forum.com/u/alex-osu3)\
**Post date:** [December 13, 2006, 5:30pm UTC](https://www.ruby-forum.com/t/ri-search-question/79253/2 "2006-12-13T17:30:50Z")

</div>

Li Chen wrote:  
…

> ```
> File::basename, File::basename
> 
> ```

…

You have 2 copies of the docs for File. RI can’t differentiate gives  
you this message.  
Need to delete/hide one of the doc directories so RI will use the  
remaining

Cheers  
Chris

---

<div class="post-metadata">

**Author:** ![alex-osu3](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/13edae/32.png) [@alex-osu3](https://www.ruby-forum.com/u/alex-osu3)\
**Post date:** [December 13, 2006, 6:16pm UTC](https://www.ruby-forum.com/t/ri-search-question/79253/3 "2006-12-13T18:16:56Z")

</div>

> You have 2 copies of the docs for File. RI can’t  
> differentiate gives  
> you this message.  
> Need to delete/hide one of the doc directories so RI  
> will use the  
> remaining

Hi Chris,

I search all the file.rb in my Ruby folder and delete  
all of them except one. When I issue the same command  
I still get the following message:

C:\>ri File.basename  
More than one method matched your request. You can  
refine  
your search by asking for information on one of:

```
 File::basename, File::basename

```

Li

---

<div class="post-metadata">

**Author:** ![alex-osu3](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/13edae/32.png) [@alex-osu3](https://www.ruby-forum.com/u/alex-osu3)\
**Post date:** [December 14, 2006, 5:53am UTC](https://www.ruby-forum.com/t/ri-search-question/79253/4 "2006-12-14T05:53:49Z")

</div>

ChrisH wrote:

> ri docs are generated from the \*.rb files. They usually reside  
> in a directory ‘…/doc//ri’ near the lib. The ri files are  
> YAML  
> and have a file extension of ‘.yaml’
> 
> You need to find the 2 sets of ri yaml files for file and remove one
> 
> Cheers

It works but I have to delete the whole folder which contains the files.

Thanks,

Li

---

<div class="post-metadata">

**Author:** ![alex-osu3](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/13edae/32.png) [@alex-osu3](https://www.ruby-forum.com/u/alex-osu3)\
**Post date:** [December 13, 2006, 6:41pm UTC](https://www.ruby-forum.com/t/ri-search-question/79253/5 "2006-12-13T18:41:05Z")

</div>

On Dec 13, 12:15 pm, chen li [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> > You have 2 copies of the docs for File. RI can’t  
> > differentiate gives  
> > you this message.  
> > Need to delete/hide one of the doc directories so RI  
> > will use the  
> > remainingHi Chris,
> 
> I search all the file.rb in my Ruby folder and delete  
> all of them except one.

ri docs are generated from the \*.rb files. They usually reside  
in a directory ‘…/doc//ri’ near the lib. The ri files are  
YAML  
and have a file extension of ‘.yaml’

You need to find the 2 sets of ri yaml files for file and remove one

Cheers
