Class: Sisyphus::Sleep
Instance Method Summary collapse
Methods inherited from Job
Instance Method Details
#perform ⇒ Object
5 6 7 8 9 |
# File 'lib/sisyphus/sleep.rb', line 5 def perform sleep 40 puts "Goodmorning from #{Process.pid}" raise "Hest" if rand(10) % 2 == 0 end |