Project

General

Profile

Bug #4496

ri can't describe Kernel.warn

Added by candlerb (Brian Candler) almost 9 years ago. Updated over 8 years ago.

Status:
Rejected
Priority:
Normal
Target version:
-
ruby -v:
ruby 1.8.7 (2010-06-23 patchlevel 299) [x86_64-linux]
[ruby-core:35489]

Description

=begin
It appears to be impossible to read documentation on Kernel.warn, due to overlapping matches.

$ ruby -v
ruby 1.8.7 (2010-06-23 patchlevel 299) [x86_64-linux]
$ ri 'Kernel.warn' | cat
More than one method matched your request. You can refine
your search by asking for information on one of:

 Kernel#warn, Kernel#with_warnings, Kernel#enable_warnings,
 Kernel#silence_warnings, Kernel#suppress_warnings, Kernel#warn

$ ri 'Kernel#warn' | cat
More than one method matched your request. You can refine
your search by asking for information on one of:

 Kernel#warn, Kernel#with_warnings, Kernel#enable_warnings,
 Kernel#silence_warnings, Kernel#suppress_warnings, Kernel#warn

$ ri 'Kernel::warn' | cat
Nothing known about Kernel::warn

Suggested solution: if your search term is an exact match, then display it (don't search for other possible matches)

=end

History

Updated by candlerb (Brian Candler) almost 9 years ago

=begin
Sorry about garbled text formatting.

$ ruby -v
ruby 1.8.7 (2010-06-23 patchlevel 299) [x86_64-linux]
$ ri 'Kernel.warn' | cat
More than one method matched your request. You can refine
your search by asking for information on one of:

     Kernel#warn, Kernel#with_warnings, Kernel#enable_warnings,
     Kernel#silence_warnings, Kernel#suppress_warnings, Kernel#warn
$ ri 'Kernel#warn' | cat
More than one method matched your request. You can refine
your search by asking for information on one of:

     Kernel#warn, Kernel#with_warnings, Kernel#enable_warnings,
     Kernel#silence_warnings, Kernel#suppress_warnings, Kernel#warn
$ ri 'Kernel::warn' | cat
Nothing known about Kernel::warn

=end

Updated by drbrain (Eric Hodel) over 8 years ago

  • Category set to lib
  • Status changed from Open to Rejected
  • Assignee set to drbrain (Eric Hodel)

=begin
RDoc 1.0.1 in 1.8.7 is no longer being maintained as the RDoc code base has diverged too far.

Please upgrade your RDoc gem to fix.
=end

Also available in: Atom PDF