Class: IRB::Command::DisableIrb
- Defined in:
- lib/irb/command/disable_irb.rb
Instance Attribute Summary
Attributes inherited from Base
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 ⇒ Object
11 12 13 14 |
# File 'lib/irb/command/disable_irb.rb', line 11 def execute(*) ::Binding.define_method(:irb) {} IRB.irb_exit end |