Method: Quebert::Configuration#around_job

Defined in:
lib/quebert/configuration.rb

#around_job(job = nil, &block) ⇒ Object



63
64
65
66
67
68
69
70
71
72
# File 'lib/quebert/configuration.rb', line 63

def around_job(job = nil, &block)
  if job
    around_hooks.each do |h|
      h.call(job)
    end
  else
    around_hooks << block if block
  end
  self
end