Sha256: 9662143c4ce5de2980b9bf7cd716e2e543afd570fc721bc66c2c902009c2c6e4
Contents?: true
Size: 427 Bytes
Versions: 2
Compression:
Stored size: 427 Bytes
Contents
require "concussion/version" module Concussion class << self attr_accessor :store end def self.persist(klass, guid, time, *args) store.set guid, {klass: klass.name, time: time, args: args} end def self.retire(guid) store.del guid end def self.init store.find_each do |guid, data| retire guid Object.const_get(data[:klass]).new.later data[:time], *(data[:args]) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
concussion-0.0.2 | lib/concussion.rb |
concussion-0.0.1 | lib/concussion.rb |