Class: Delayed::EvaledJob
- Inherits:
-
Object
- Object
- Delayed::EvaledJob
- Defined in:
- lib/vendor/plugins/delayed_job/lib/delayed/job.rb
Instance Method Summary collapse
-
#initialize ⇒ EvaledJob
constructor
A new instance of EvaledJob.
- #perform ⇒ Object
Constructor Details
#initialize ⇒ EvaledJob
Returns a new instance of EvaledJob.
263 264 265 |
# File 'lib/vendor/plugins/delayed_job/lib/delayed/job.rb', line 263 def initialize @job = yield end |
Instance Method Details
#perform ⇒ Object
267 268 269 |
# File 'lib/vendor/plugins/delayed_job/lib/delayed/job.rb', line 267 def perform eval(@job) end |