diff options
author | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-01-31 05:10:58 +0000 |
---|---|---|
committer | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-01-31 05:10:58 +0000 |
commit | d2bb8975e18ca089819145bf4b3c1c228973ce0d (patch) | |
tree | 0590c6ceae16c39c822a25c7bf8a3fabfdfd06f6 /lib/rdoc/ri/display.rb | |
parent | ae8095e44dae9b440f07780d230d816f684a8f8a (diff) | |
download | ruby-d2bb8975e18ca089819145bf4b3c1c228973ce0d.tar.gz |
* lib/rdoc/ri/display.rb (display_method_list, display_class_list):
use @formatter.raw_print_line instead of puts.
* lib/rdoc/ri/driver.rb (select_methods): new method to collect all
instance/class methods which match with passed pattern.
* lib/rdoc/ri/driver.rb (run): use class_cache's result directly
instead of select_classes' because it's removed now.
* lib/rdoc/ri/driver.rb (run): search methods when passed name is not
class name. [ruby-core:15309]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15355 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/rdoc/ri/display.rb')
-rw-r--r-- | lib/rdoc/ri/display.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/rdoc/ri/display.rb b/lib/rdoc/ri/display.rb index d5ac8c2f01..3b24ef04ba 100644 --- a/lib/rdoc/ri/display.rb +++ b/lib/rdoc/ri/display.rb @@ -136,16 +136,16 @@ class RDoc::RI::DefaultDisplay def display_method_list(methods) page do - puts "More than one method matched your request. You can refine" - puts "your search by asking for information on one of:\n\n" + @formatter.raw_print_line("More than one method matched your request. You can refine") + @formatter.raw_print_line("your search by asking for information on one of:\n\n") @formatter.wrap(methods.map {|m| m.full_name} .join(", ")) end end def display_class_list(namespaces) page do - puts "More than one class or module matched your request. You can refine" - puts "your search by asking for information on one of:\n\n" + @formatter.raw_print_line("More than one class or module matched your request. You can refine") + @formatter.raw_print_line("your search by asking for information on one of:\n\n") @formatter.wrap(namespaces.map {|m| m.full_name}.join(", ")) end end |