mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* lib/irb/cmd/help.rb (IRB::ExtendCommand::Help#execute): use RI
interactive mode if no argument. [ruby-dev:39839] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27254 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
f1973fff8a
commit
0f58f9dbe7
2 changed files with 9 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
|||
Thu Apr 8 07:16:19 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* lib/irb/cmd/help.rb (IRB::ExtendCommand::Help#execute): use RI
|
||||
interactive mode if no argument. [ruby-dev:39839]
|
||||
|
||||
Wed Apr 8 02:33:55 2010 Marc-Andre Lafortune <ruby-core@marc-andre.ca>
|
||||
|
||||
* array.c (rb_ary_permutation): Remove limitation for lengthy permutations
|
||||
|
|
|
@ -9,7 +9,6 @@
|
|||
#
|
||||
|
||||
require 'rdoc/ri/driver'
|
||||
require 'rdoc/ri/util'
|
||||
|
||||
require "irb/cmd/nop.rb"
|
||||
|
||||
|
@ -21,6 +20,10 @@ module IRB
|
|||
rescue SystemExit
|
||||
else
|
||||
def execute(*names)
|
||||
if names.empty?
|
||||
Ri.interactive
|
||||
return
|
||||
end
|
||||
names.each do |name|
|
||||
begin
|
||||
Ri.get_info_for(name.to_s)
|
||||
|
|
Loading…
Add table
Reference in a new issue