Module: Signal

Defined in:
lib/mb/core_ext/signal.rb

Class Method Summary collapse

Class Method Details

.supported?(id) ⇒ Boolean

Check if a given signal is supported on the current platform

Parameters:

  • id (#to_s)

    the signal ID

Returns:

  • (Boolean)


7
8
9
# File 'lib/mb/core_ext/signal.rb', line 7

def supported?(id)
  list.has_key?(id.to_s)
end