Class: DelayedTask::PerformableTask
- Inherits:
-
Struct
- Object
- Struct
- DelayedTask::PerformableTask
- Defined in:
- lib/delayed_task.rb
Instance Attribute Summary collapse
-
#task ⇒ Object
Returns the value of attribute task.
Instance Method Summary collapse
Instance Attribute Details
#task ⇒ Object
Returns the value of attribute task
2 3 4 |
# File 'lib/delayed_task.rb', line 2 def task @task end |
Instance Method Details
#perform ⇒ Object
3 4 5 |
# File 'lib/delayed_task.rb', line 3 def perform system "rake #{task}" end |