Class: Scheduler::ProcTask
Overview
Description of a Task that execute a Proc
Instance Attribute Summary collapse
-
#name ⇒ String
readonly
Name that describe the task.
-
#priority ⇒ Integer
readonly
Priority of the task.
Instance Method Summary collapse
-
#initialize(name, priority, proc_object) ⇒ ProcTask
constructor
Initialize a ProcTask with its name, priority and the Proc it executes.
-
#start
Invoke the #call method of the proc.
Constructor Details
#initialize(name, priority, proc_object) ⇒ ProcTask
Initialize a ProcTask with its name, priority and the Proc it executes
187 188 |
# File 'docs/0_Dependencies.rb', line 187 def initialize(name, priority, proc_object) end |
Instance Attribute Details
#name ⇒ String (readonly)
Name that describe the task
182 183 184 |
# File 'docs/0_Dependencies.rb', line 182 def name @name end |
#priority ⇒ Integer (readonly)
Priority of the task
179 180 181 |
# File 'docs/0_Dependencies.rb', line 179 def priority @priority end |
Instance Method Details
#start
Invoke the #call method of the proc
190 191 |
# File 'docs/0_Dependencies.rb', line 190 def start end |