Sha256: fea3b8cb56a270ab73fcbfec6d0ed2e48c078604ad36ee099a6ffc70a6bb9901

Contents?: true

Size: 243 Bytes

Versions: 1

Compression:

Stored size: 243 Bytes

Contents

class Hadouken::Tasks
  include Enumerable

  def initialize
    @tasks = []
  end

  def each
    @tasks.each do |task|
      yield task
    end
  end

  def add(task, opts={})
    @tasks << Hadouken::Task::Base.create!(task, opts)
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
hadouken-0.1.4.pre lib/hadouken/tasks.rb