lib/em-jack/job.rb in em-jack-0.0.3 vs lib/em-jack/job.rb in em-jack-0.0.4

- old
+ new

@@ -6,15 +6,15 @@ @conn = conn @jobid = jobid.to_i @body = body end - def delete - @conn.delete(self) + def delete(&blk) + @conn.delete(self, &blk) end - def stats - @conn.stats(:job, self) + def stats(&blk) + @conn.stats(:job, self, &blk) end def to_s "#{@jobid} -- #{body.inspect}" end \ No newline at end of file