Class: ProcessCommand::Signal::Setting
- Inherits:
-
Object
- Object
- ProcessCommand::Signal::Setting
- Defined in:
- lib/process_command/signal/setting.rb
Constant Summary collapse
- DEFAULT_BIT0 =
:USR1
- DEFAULT_BIT1 =
:USR2
- DEFAULT_CONTROL =
:HUP
Class Method Summary collapse
- .bit0 ⇒ Object
- .bit1 ⇒ Object
- .control ⇒ Object
- .set_bits(bit0, bit1) ⇒ Object
- .set_control(control) ⇒ Object
Class Method Details
.bit0 ⇒ Object
22 23 24 |
# File 'lib/process_command/signal/setting.rb', line 22 def bit0 @bit0 ||= DEFAULT_BIT0 end |
.bit1 ⇒ Object
26 27 28 |
# File 'lib/process_command/signal/setting.rb', line 26 def bit1 @bit1 ||= DEFAULT_BIT1 end |
.control ⇒ Object
30 31 32 |
# File 'lib/process_command/signal/setting.rb', line 30 def control @control ||= DEFAULT_CONTROL end |
.set_bits(bit0, bit1) ⇒ Object
13 14 15 16 |
# File 'lib/process_command/signal/setting.rb', line 13 def set_bits(bit0, bit1) @bit0 = bit0 @bit1 = bit1 end |
.set_control(control) ⇒ Object
18 19 20 |
# File 'lib/process_command/signal/setting.rb', line 18 def set_control(control) @control = control end |