Class: Daemons::PidMem
Instance Attribute Summary collapse
-
#pid ⇒ Object
Returns the value of attribute pid.
Class Method Summary collapse
Methods inherited from Pid
#cleanup, dir, #exist?, #initialize, #running?, running?, #zap
Constructor Details
This class inherits a constructor from Daemons::Pid
Instance Attribute Details
#pid ⇒ Object
Returns the value of attribute pid.
5 6 7 |
# File 'lib/daemons/pidmem.rb', line 5 def pid @pid end |
Class Method Details
.existing(numeric_pid) ⇒ Object
7 8 9 10 11 12 13 |
# File 'lib/daemons/pidmem.rb', line 7 def self.existing(numeric_pid) new_instance = PidMem.allocate new_instance.instance_variable_set(:@pid, numeric_pid) new_instance end |