Class: Screengem::Task

Inherits:
Object
  • Object
show all
Includes:
Actionable, Configurable, DSL, Dampenable, Executable
Defined in:
lib/screengem/task.rb

Overview

Base class for all tasks.

Direct Known Subclasses

Factories::TaskFactory::TaskError

Instance Method Summary collapse

Methods included from DSL

#question, #task

Methods included from Executable

#execute

Methods included from Dampenable

#seconds_to_dampen

Methods included from Configurable

#configure

Methods included from Actionable

#action

Instance Method Details

#performObject



15
16
17
# File 'lib/screengem/task.rb', line 15

def perform
  execute.tap { sleep(seconds_to_dampen) }
end