Class: Forkomatic::Job
- Inherits:
-
Object
- Object
- Forkomatic::Job
- Defined in:
- lib/forkomatic.rb
Instance Attribute Summary collapse
-
#pid ⇒ Object
Returns the value of attribute pid.
Instance Method Summary collapse
-
#initialize ⇒ Job
constructor
A new instance of Job.
- #work! ⇒ Object
Constructor Details
#initialize ⇒ Job
Returns a new instance of Job.
5 6 7 |
# File 'lib/forkomatic.rb', line 5 def initialize self.pid = nil end |
Instance Attribute Details
#pid ⇒ Object
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 |