Class: IRB::Command::Context

Inherits:
Base show all
Defined in:
lib/irb/command/context.rb

Instance Attribute Summary

Attributes inherited from Base

#irb_context

Instance Method Summary collapse

Methods inherited from Base

category, description, execute, help_message, #initialize

Constructor Details

This class inherits a constructor from IRB::Command::Base

Instance Method Details

#execute(_arg) ⇒ Object



9
10
11
12
13
# File 'lib/irb/command/context.rb', line 9

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