mirror of
https://github.com/ruby/ruby.git
synced 2026-01-28 13:04:22 +00: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 https://github.com/ruby/irb/commit/0b5dd6afd0
19 lines
257 B
Ruby
19 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
|