Class: AsyncBlock::AsyncWrapperJob

Inherits:
CustomActiveJob show all
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