Feature #2442

[irb] interactive help

Added by nobu (Nobuyoshi Nakada) over 2 years ago. Updated about 1 year ago.

[ruby-dev:39839]
Status:Closed Start date:12/05/2009
Priority:Normal Due date:
Assignee:nobu (Nobuyoshi Nakada) % Done:

100%

Category:lib
Target version:1.9.2

Description

なかだです。

riのinteractive modeをirbから使えるようにするというのはどうでしょ
うか。


Index: lib/irb/cmd/help.rb
===================================================================
--- lib/irb/cmd/help.rb	(revision 25998)
+++ lib/irb/cmd/help.rb	(working copy)
@@ -22,4 +22,8 @@ module IRB
       else
         def execute(*names)
+          if names.empty?
+            Ri.interactive
+            return
+          end
           names.each do |name|
             begin


-- 
--- 僕の前にBugはない。
--- 僕の後ろにBugはできる。
    中田 伸悦

Associated revisions

Revision 27254
Added by nobu (Nobuyoshi Nakada) about 2 years ago

* lib/irb/cmd/help.rb (IRB::ExtendCommand::Help#execute): use RI interactive mode if no argument. [ruby-dev:39839]

History

Updated by nobu (Nobuyoshi Nakada) over 2 years ago

  • Category set to lib
  • Assignee set to keiju (Keiju Ishitsuka)
  • Priority changed from Low to Normal
  • Target version set to 1.9.2

Updated by keiju (Keiju Ishitsuka) about 2 years ago

なかださん

中田さんにコミットお願いしてよろしいですか?

Updated by znz (Kazuhiro NISHIYAMA) about 2 years ago

  • Status changed from Open to Assigned
  • Assignee changed from keiju (Keiju Ishitsuka) to nobu (Nobuyoshi Nakada)
  • Start date set to 12/05/2009

Updated by nobu (Nobuyoshi Nakada) about 2 years ago

  • Status changed from Assigned to Closed
  • % Done changed from 0 to 100
This issue was solved with changeset r27254.
Nobuyoshi, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.

Also available in: Atom PDF