Sha256: de300757b9c6b8c407dad38ca9a256b7a3745b56fbb581411da265dd361a58ce
Contents?: true
Size: 750 Bytes
Versions: 6
Compression:
Stored size: 750 Bytes
Contents
module Byebug # # Exit from byebug. # class QuitCommand < Command self.allow_in_control = true def regexp /^\s* (?:q(?:uit)?|exit) \s* (!|\s+unconditionally)? \s*$/x end def execute return unless @match[1] || confirm('Really quit? (y/n) ') @state.interface.close exit! # exit -> exit!: No graceful way to stop... end class << self def names %w(quit exit) end def description %(q[uit]|exit [!|unconditionally] Exits from byebug. Normally we prompt before exiting. However if the parameter "unconditionally" is given or command is suffixed with !, we exit without asking further questions.) end end end end
Version data entries
6 entries across 6 versions & 1 rubygems