Class: IRB::Command::DisableIrb

Inherits:
Base show all
Defined in:
lib/irb/command/disable_irb.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

#executeObject


11
12
13
14
# File 'lib/irb/command/disable_irb.rb', line 11

def execute(*)
  ::Binding.define_method(:irb) {}
  IRB.irb_exit
end