Sha256: 774f7087f14f3991bea6633fc0c75777f4e09f3d8428181af1d49c4be4ad48de
Contents?: true
Size: 589 Bytes
Versions: 2
Compression:
Stored size: 589 Bytes
Contents
require 'queue_classic' module QC class Queue def enqueue(method, *args) receiver_str, _, message = method.rpartition('.') receiver = eval(receiver_str) receiver.send(message, *args) end def enqueue_in(seconds, method, *args) receiver_str, _, message = method.rpartition('.') receiver = eval(receiver_str) receiver.send(message, *args) end def enqueue_at(not_before, method, *args) receiver_str, _, message = method.rpartition('.') receiver = eval(receiver_str) receiver.send(message, *args) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
activejob-lock-0.0.2 | rails/activejob/test/support/queue_classic/inline.rb |
activejob-lock-0.0.1 | rails/activejob/test/support/queue_classic/inline.rb |