Flowdock
method

signame

Importance_1
Ruby latest stable (v2_5_5) - 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.