Methods
- A
- D
- N
- P
- Q
- R
- S
- W
Class Public methods
new(irb) Link
Instance Public methods
activate(session, on_fork: false) Link
after_fork_parent() Link
# File ruby/lib/irb/debug/ui.rb, line 84 def after_fork_parent parent_pid = Process.pid at_exit{ DEBUGGER__::SESSION.intercept_trap_sigint_end trap(:SIGINT, :IGNORE) if Process.pid == parent_pid # only check child process from its parent begin # wait for all child processes to keep terminal Process.waitpid rescue Errno::ESRCH, Errno::ECHILD end end } end
ask(prompt) Link
deactivate() Link
puts(str = nil) Link
quit(n) Link
readline(_) Link
remote?() Link
setup_interrupt() Link
# File ruby/lib/irb/debug/ui.rb, line 70 def setup_interrupt DEBUGGER__::SESSION.intercept_trap_sigint false do current_thread = Thread.current # should be session_server thread prev_handler = trap(:INT){ current_thread.raise Interrupt } yield ensure trap(:INT, prev_handler) end end