summaryrefslogtreecommitdiff
path: root/lib/irb/extend-command.rb
diff options
context:
space:
mode:
authorTakashi Kokubun <[email protected]>2021-03-31 22:49:51 -0700
committergit <[email protected]>2021-04-02 16:40:06 +0900
commit9e336f73fb7d37f3b09e360f8204828bbca51cd5 (patch)
tree3327a48e892556036bc6d11f43cbfe9c376b25a9 /lib/irb/extend-command.rb
parent43e0677c6de891c184da4ec66a03005d0824d5d0 (diff)
[ruby/irb] Add show_source command
https://github.com/ruby/irb/commit/108cb04352
Diffstat (limited to 'lib/irb/extend-command.rb')
-rw-r--r--lib/irb/extend-command.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/irb/extend-command.rb b/lib/irb/extend-command.rb
index f50068d06c..339e9e6084 100644
--- a/lib/irb/extend-command.rb
+++ b/lib/irb/extend-command.rb
@@ -136,6 +136,11 @@ module IRB # :nodoc:
],
[
+ :irb_show_source, :ShowSource, "irb/cmd/show_source",
+ [:show_source, NO_OVERRIDE],
+ ],
+
+ [
:irb_whereami, :Whereami, "irb/cmd/whereami",
[:whereami, NO_OVERRIDE],
],