Sha256: 396be596bb496cca2fdf509716426cb8b32850d735eb79280a3ed218c5043fa8
Contents?: true
Size: 436 Bytes
Versions: 15
Compression:
Stored size: 436 Bytes
Contents
module Adrian class Worker attr_reader :item def initialize(item) @item = item end def report_to(boss) @boss = boss end def perform exception = nil begin work rescue Exception => e exception = e end @boss.work_done(item, self, exception) if @boss end def work raise "You need to implement #{self.class.name}#work" end end end
Version data entries
15 entries across 15 versions & 1 rubygems