lib/tty/reader.rb
def handle_interrupt
      case @interrupt
      when :signal
        Process.kill("SIGINT", Process.pid)
      when :exit
        exit(130)
      when Proc
        @interrupt.call
      when :noop
        # Noop
      else
        raise InputInterrupt
      end
    end
# Handle input interrupt based on provided value
#
# @api private
Handle input interrupt based on provided value
Handle input interrupt based on provided value
def handle_interrupt
      case @interrupt
      when :signal
        Process.kill("SIGINT", Process.pid)
      when :exit
        exit(130)
      when Proc
        @interrupt.call
      when :noop
      else
        raise InputInterrupt
      end
    end
def handle_interrupt case @interrupt when :signal Process . kill ( "SIGINT" , Process . pid ) when :exit exit ( 130 ) when Proc @interrupt . call when :noop else raise InputInterrupt end end
Handle input interrupt based on provided value
Handle input interrupt based on provided value
# Noop
api
None