summaryrefslogtreecommitdiff
path: root/lib/irb/extend-command.rb
diff options
context:
space:
mode:
authorStan Lo <stan.lo@shopify.com>2022-11-20 04:47:51 +0000
committergit <svn-admin@ruby-lang.org>2022-11-20 04:47:54 +0000
commit180ed611b238db48db9feb1449c4e3b563d2dce0 (patch)
treebfd4d7be6b7c0d17773eeead6ea0f6c63186e342 /lib/irb/extend-command.rb
parent439990318d90a689b2ac067b41c3462ddda60ae5 (diff)
[ruby/irb] Add edit command (https://github.com/ruby/irb/pull/453)
* Add edit command * Make find_source a public singleton method * Add document for the edit command * Make find_end private * Remove duplicated private https://github.com/ruby/irb/commit/4321674aa7 Co-authored-by: Takashi Kokubun <takashikkbn@gmail.com>
Diffstat (limited to 'lib/irb/extend-command.rb')
-rw-r--r--lib/irb/extend-command.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/irb/extend-command.rb b/lib/irb/extend-command.rb
index 94fd9c8bb4..7e120cf510 100644
--- a/lib/irb/extend-command.rb
+++ b/lib/irb/extend-command.rb
@@ -121,6 +121,10 @@ module IRB # :nodoc:
[:debug, NO_OVERRIDE],
],
[
+ :irb_edit, :Edit, "cmd/edit",
+ [:edit, NO_OVERRIDE],
+ ],
+ [
:irb_help, :Help, "cmd/help",
[:help, NO_OVERRIDE],
],