Sha256: d1d3b38dff6ab939c1daad19f6bd354292508cf92a31192a82a521290df7ca86
Contents?: true
Size: 517 Bytes
Versions: 27
Compression:
Stored size: 517 Bytes
Contents
module Taskinator class Executor attr_reader :definition attr_reader :task def initialize(definition, task=nil) @definition = definition @task = task # include the module into the eigen class, so it is only for this instance eigen = class << self; self; end eigen.send(:include, definition) end def process_uuid task.process_uuid if task end def uuid task.uuid if task end def options task.options if task end end end
Version data entries
27 entries across 27 versions & 1 rubygems