Class: IRB::ExtendCommand::Exit

Inherits:
Nop show all
Defined in:
lib/irb/cmd/exit.rb

Instance Attribute Summary

Attributes inherited from Nop

#irb_context

Instance Method Summary collapse

Methods inherited from Nop

category, description, execute, #initialize

Constructor Details

This class inherits a constructor from IRB::ExtendCommand::Nop

Instance Method Details

#executeObject



13
14
15
16
17
# File 'lib/irb/cmd/exit.rb', line 13

def execute(*)
  IRB.irb_exit
rescue UncaughtThrowError
  Kernel.exit
end