Class: DelayedTask::PerformableTask

Inherits:
Struct
  • Object
show all
Defined in:
lib/delayed_task.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#taskObject

Returns the value of attribute task

Returns:

  • (Object)

    the current value of task



2
3
4
# File 'lib/delayed_task.rb', line 2

def task
  @task
end

Instance Method Details

#performObject



3
4
5
# File 'lib/delayed_task.rb', line 3

def perform
  system "rake #{task}"
end