Bug #3760 ยป bug3760.patch
| lib/irb/cmd/help.rb | ||
|---|---|---|
|
Ri.interactive
|
||
|
return
|
||
|
end
|
||
|
names.each do |name|
|
||
|
begin
|
||
|
Ri.get_info_for(name.to_s)
|
||
|
rescue RDoc::RI::Error
|
||
|
puts $!.message
|
||
|
end
|
||
|
begin
|
||
|
Ri.display_names(names)
|
||
|
rescue RDoc::RI::Error
|
||
|
puts $!.message
|
||
|
end
|
||
|
nil
|
||
|
end
|
||
| test/irb/test_cmd_help.rb | ||
|---|---|---|
|
require 'test/unit'
|
||
|
require 'irb/cmd/help'
|
||
|
module IRB
|
||
|
module ExtendCommand
|
||
|
class TestHelp < ::Test::Unit::TestCase
|
||
|
def test_execute
|
||
|
bug3760 = "[ruby-core:31927]"
|
||
|
assert_nothing_raised(bug3760) do
|
||
|
Help.new(nil).execute("String.new")
|
||
|
end
|
||
|
end
|
||
|
end
|
||
|
end
|
||
|
end
|
||