Sha256: 172afada55cb4a9ab31ae931e30a48db2bda7137cc9949e8dcc8a23f71924f3c
Contents?: true
Size: 498 Bytes
Versions: 1
Compression:
Stored size: 498 Bytes
Contents
module Quebert module AsyncSender # Perform jobs on Object methods (not instances) module Object class ObjectJob < Job def perform(const, meth, args) Support.constantize(const).send(meth, *args) end end def self.included(base) base.send(:extend, ClassMethods) end module ClassMethods def async_send(meth, *args) ObjectJob.enqueue(self.name, meth, args) end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
quebert-0.0.4 | lib/quebert/async_sender/object.rb |