diff options
author | keiju <keiju@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-07-21 12:41:01 +0000 |
---|---|---|
committer | keiju <keiju@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-07-21 12:41:01 +0000 |
commit | 7203e59f275dfe6f0b6e6f301673400565c5e0dc (patch) | |
tree | 6c15594e6518f588825f549079b072617e378b0e /lib/irb | |
parent | 623cfccb6f40c61f2b014301e13ac0c11c01f8a8 (diff) | |
download | ruby-7203e59f275dfe6f0b6e6f301673400565c5e0dc.tar.gz |
* lib/irb/cmd/help.rb: fixed irb's "help" command. [ruby-core:22310].
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24227 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/irb')
-rw-r--r-- | lib/irb/cmd/help.rb | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/lib/irb/cmd/help.rb b/lib/irb/cmd/help.rb index de3c6bd6bf..d2d6ef4083 100644 --- a/lib/irb/cmd/help.rb +++ b/lib/irb/cmd/help.rb @@ -11,17 +11,19 @@ require 'rdoc/ri/driver' require 'rdoc/ri/util' +require "irb/cmd/nop.rb" + module IRB module ExtendCommand - module Help + class Help<Nop begin - @ri = RDoc::RI::Driver.new + Ri = RDoc::RI::Driver.new rescue SystemExit else - def self.execute(context, *names) + def execute(*names) names.each do |name| begin - @ri.get_info_for(name.to_s) + Ri.get_info_for(name.to_s) rescue RDoc::RI::Error puts $!.message end |