Sha256: 2919371a043f3fd3cbf1999738800efe34d704efc558fcc69e6cd6737f14165c
Contents?: true
Size: 318 Bytes
Versions: 1
Compression:
Stored size: 318 Bytes
Contents
class Hadouken::Tasks include Enumerable attr_reader :plan def initialize(opts) @plan = opts[:plan] @tasks = [] end def each @tasks.each do |task| yield task end end def add(task, opts={}) @tasks << Hadouken::Task::Base.create!(task, {:plan => plan}.merge(opts)) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
hadouken-0.1.5.pre | lib/hadouken/tasks.rb |