Class: AsyncBlock::AsyncWrapperJob
- Inherits:
-
CustomActiveJob
- Object
- ActiveJob::Base
- CustomActiveJob
- AsyncBlock::AsyncWrapperJob
- Defined in:
- lib/async_block/async_wrapper_job.rb
Overview
Job to dynamically run a block of code
Instance Method Summary collapse
Instance Method Details
#perform(source) ⇒ Object
11 12 13 14 15 |
# File 'lib/async_block/async_wrapper_job.rb', line 11 def perform(source) block = source_to_block(source) execute_block!(block) true end |