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

Version Path
taskinator-0.0.17 lib/taskinator/executor.rb
taskinator-0.0.16 lib/taskinator/executor.rb
taskinator-0.0.15 lib/taskinator/executor.rb
taskinator-0.0.14 lib/taskinator/executor.rb
taskinator-0.0.13 lib/taskinator/executor.rb
taskinator-0.0.12 lib/taskinator/executor.rb
taskinator-0.0.11 lib/taskinator/executor.rb
taskinator-0.0.10 lib/taskinator/executor.rb
taskinator-0.0.9 lib/taskinator/executor.rb
taskinator-0.0.8 lib/taskinator/executor.rb
taskinator-0.0.7 lib/taskinator/executor.rb
taskinator-0.0.5 lib/taskinator/executor.rb
taskinator-0.0.4 lib/taskinator/executor.rb
taskinator-0.0.3 lib/taskinator/executor.rb
taskinator-0.0.2 lib/taskinator/executor.rb
taskinator-0.0.1 lib/taskinator/executor.rb