Class: Resque::Integration::Hooks::CallableArray

Inherits:
Array
  • Object
show all
Defined in:
lib/resque/integration/hooks.rb

Overview

We do not want to patch Worker, so we declare callable Array

Instance Method Summary collapse

Instance Method Details

#call(*args) ⇒ Object



10
11
12
# File 'lib/resque/integration/hooks.rb', line 10

def call(*args)
  each { |hook| hook.call(*args) }
end