summaryrefslogtreecommitdiff
path: root/lib/irb/command/context.rb
blob: b4fc807343c0f503dc41f93b55e2ee28e4ac26c9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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