Class: ProcessCommand::Signal::Setting

Inherits:
Object
  • Object
show all
Defined in:
lib/process_command/signal/setting.rb

Constant Summary collapse

DEFAULT_BIT0 =
:USR1
DEFAULT_BIT1 =
:USR2
DEFAULT_CONTROL =
:HUP

Class Method Summary collapse

Class Method Details

.bit0Object



22
23
24
# File 'lib/process_command/signal/setting.rb', line 22

def bit0
  @bit0 ||= DEFAULT_BIT0
end

.bit1Object



26
27
28
# File 'lib/process_command/signal/setting.rb', line 26

def bit1
  @bit1 ||= DEFAULT_BIT1
end

.controlObject



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