Class: Forkomatic::Job

Inherits:
Object
  • Object
show all
Defined in:
lib/forkomatic.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeJob

Returns a new instance of Job.



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

def initialize
  self.pid = nil
end

Instance Attribute Details

#pidObject

Returns the value of attribute pid.



3
4
5
# File 'lib/forkomatic.rb', line 3

def pid
  @pid
end

Instance Method Details

#work!Object



9
10
11
# File 'lib/forkomatic.rb', line 9

def work!
  sleep 1
end