Class: Rodbot::Async::Job

Inherits:
Object
  • Object
show all
Includes:
SuckerPunch::Job
Defined in:
lib/rodbot/async.rb

Instance Method Summary collapse

Instance Method Details

#perform(proc) ⇒ Object

Generic job which simply calls a proc

Parameters:

  • proc (Proc)

    proc to call



40
41
42
# File 'lib/rodbot/async.rb', line 40

def perform(proc)
  proc.call
end