Bugs item #6443, was opened at 2006-11-01 13:19
You can respond by visiting: 
http://rubyforge.org/tracker/?func=detail&atid=1698&aid=6443&group_id=426

Category: Documentation
Group: 1.8.5
Status: Open
Resolution: Accepted
Priority: 3
Submitted By: Dane Jensen (careo)
>Assigned to: Eric Hodel (drbrain)
Summary: ri for specific method returns suggestion to refine search if there are similarly named methods

Initial Comment:
For example:

>>> ri IO#close
More than one method matched your request. You can refine
your search by asking for information on one of:

     IO#close, IO#close_read, IO#close_write, IO#closed?, IO#close

In 1.8.5, the docs for IO#close are returned as expected.

----------------------------------------------------------------------

Comment By: Dane Jensen (careo)
Date: 2006-11-20 17:33

Message:
$ ruby -v
ruby 1.8.5 (2006-08-25) [i686-darwin8.8.1]

$ find /opt/local/share/ri/1.8 -name "*close-i.yaml"
/opt/local/share/ri/1.8/system/CGI/Session/close-i.yaml
/opt/local/share/ri/1.8/system/CGI/Session/FileStore/close-i.yaml
/opt/local/share/ri/1.8/system/CGI/Session/MemoryStore/close-i.yaml
/opt/local/share/ri/1.8/system/CSV/IOBuf/close-i.yaml
/opt/local/share/ri/1.8/system/CSV/Reader/close-i.yaml
/opt/local/share/ri/1.8/system/CSV/Writer/close-i.yaml
/opt/local/share/ri/1.8/system/Dir/close-i.yaml
/opt/local/share/ri/1.8/system/DRb/DRbSSLSocket/close-i.yaml
/opt/local/share/ri/1.8/system/DRb/DRbTCPSocket/close-i.yaml
/opt/local/share/ri/1.8/system/DRb/DRbUNIXSocket/close-i.yaml
/opt/local/share/ri/1.8/system/Iconv/close-i.yaml
/opt/local/share/ri/1.8/system/IO/close-i.yaml
/opt/local/share/ri/1.8/system/Logger/close-i.yaml
/opt/local/share/ri/1.8/system/Logger/LogDevice/close-i.yaml
/opt/local/share/ri/1.8/system/Net/FTP/close-i.yaml
/opt/local/share/ri/1.8/system/Net/IMAP/close-i.yaml
/opt/local/share/ri/1.8/system/Resolv/DNS/close-i.yaml
/opt/local/share/ri/1.8/system/Resolv/DNS/Requester/close-i.yaml
/opt/local/share/ri/1.8/system/SOAP/MIMEMessage/close-i.yaml
/opt/local/share/ri/1.8/system/StringIO/close-i.yaml
/opt/local/share/ri/1.8/system/Tempfile/close-i.yaml
/opt/local/share/ri/1.8/system/ThreadGroup/enclose-i.yaml
/opt/local/share/ri/1.8/system/WEBrick/BasicLog/close-i.yaml
/opt/local/share/ri/1.8/system/Zlib/GzipFile/close-i.yaml
/opt/local/share/ri/1.8/system/Zlib/ZStream/close-i.yaml


----------------------------------------------------------------------

Comment By: Eric Hodel (drbrain)
Date: 2006-11-20 15:22

Message:
I cannot reproduce this in 1.8.5:

$ ruby -v
ruby 1.8.5 (2006-08-25) [i386-freebsd6]
$ ri IO#close
--------------------------------------------------------------- IO#close
     ios.close   => nil
------------------------------------------------------------------------
     Closes _ios_ and flushes any pending writes to the operating
     system. The stream is unavailable for any further data operations;
     an +IOError+ is raised if such an attempt is made. I/O streams are
     automatically closed when they are claimed by the garbage
     collector.

     If _ios_ is opened by +IO.popen+, +close+ sets +$?+.

What version of ruby does this error appear in?

Please provide ruby -v and run this:

find /usr/local/share/ri/1.8 -name "*close-i.yaml"


----------------------------------------------------------------------

Comment By: Ryan Davis (zenspider)
Date: 2006-11-01 22:31

Message:
I'm gonna get Eric's eyeballs on this one.

----------------------------------------------------------------------

Comment By: Dane Jensen (careo)
Date: 2006-11-01 14:40

Message:
Erm, In that last line I mean 1.8.4 does it as expected.

----------------------------------------------------------------------

You can respond by visiting: 
http://rubyforge.org/tracker/?func=detail&atid=1698&aid=6443&group_id=426