method

signame

Importance_1
v2_6_3 - Show latest stable - 0 notes - Class: Signal
signame(p1) public

Convert signal number to signal name. Returns nil if the signo is an invalid signal number.

Signal.trap("INT") { |signo| puts Signal.signame(signo) }
Process.kill("INT", 0)

produces:

INT
Show source
Register or log in to add new notes.