From 077558ee2b8dd3ed414b78384f21118f833eb259 Mon Sep 17 00:00:00 2001 From: Hiroshi SHIBATA Date: Wed, 29 May 2024 07:54:39 +0900 Subject: [Bug #20511] Update reline-0.5.7 (#10848) * Update reline-0.5.7 * Update irb-1.13.1 --- lib/irb/command/context.rb | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 lib/irb/command/context.rb (limited to 'lib/irb/command/context.rb') diff --git a/lib/irb/command/context.rb b/lib/irb/command/context.rb new file mode 100644 index 0000000000..b4fc807343 --- /dev/null +++ b/lib/irb/command/context.rb @@ -0,0 +1,16 @@ +# frozen_string_literal: true + +module IRB + module Command + class Context < Base + category "IRB" + description "Displays current configuration." + + def execute(_arg) + # This command just displays the configuration. + # Modifying the configuration is achieved by sending a message to IRB.conf. + Pager.page_content(IRB.CurrentContext.inspect) + end + end + end +end -- cgit v1.2.3