mirror of
https://github.com/ruby/ruby.git
synced 2025-08-24 13:34:17 +02:00

debug_readline
(https://github.com/ruby/irb/pull/923)
* Remove exit and exti! command workaround when executed outside of IRB
Command was a method. It could be executed outside of IRB.
Workaround for it is no longer needed.
* Handle IRB_EXIT in debug mode
* Add exit and exit! command in rdbg mode
0b5dd6afd0
18 lines
257 B
Ruby
18 lines
257 B
Ruby
# frozen_string_literal: true
|
|
|
|
module IRB
|
|
# :stopdoc:
|
|
|
|
module Command
|
|
class Exit < Base
|
|
category "IRB"
|
|
description "Exit the current irb session."
|
|
|
|
def execute(_arg)
|
|
IRB.irb_exit
|
|
end
|
|
end
|
|
end
|
|
|
|
# :startdoc:
|
|
end
|