Sha256: 585505bac77ca0b09ef6cdedb001f8530efe00d9e961c831e31a754b7ed81837
Contents?: true
Size: 355 Bytes
Versions: 16
Compression:
Stored size: 355 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 end end
Version data entries
16 entries across 16 versions & 1 rubygems