Class: Loom::Trap::SignalExit

Inherits:
LoomError
  • Object
show all
Defined in:
lib/loom/trap.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(signal) ⇒ SignalExit

Returns a new instance of SignalExit.



7
8
9
# File 'lib/loom/trap.rb', line 7

def initialize(signal)
  @signal = signal
end

Instance Attribute Details

#signalObject (readonly)

Returns the value of attribute signal.



5
6
7
# File 'lib/loom/trap.rb', line 5

def signal
  @signal
end