Class: Arsenicum::Task
- Inherits:
-
Object
- Object
- Arsenicum::Task
- Defined in:
- lib/arsenicum/task.rb
Direct Known Subclasses
Defined Under Namespace
Classes: ClassDispatcher
Instance Attribute Summary collapse
-
#id ⇒ Object
readonly
Returns the value of attribute id.
Instance Method Summary collapse
-
#initialize(id) ⇒ Task
constructor
A new instance of Task.
- #run(*parameters) ⇒ Object
Constructor Details
#initialize(id) ⇒ Task
Returns a new instance of Task.
4 5 6 |
# File 'lib/arsenicum/task.rb', line 4 def initialize(id) @id = id end |
Instance Attribute Details
#id ⇒ Object (readonly)
Returns the value of attribute id.
2 3 4 |
# File 'lib/arsenicum/task.rb', line 2 def id @id end |
Instance Method Details
#run(*parameters) ⇒ Object
8 9 10 |
# File 'lib/arsenicum/task.rb', line 8 def run(*parameters) # Originally do nothing. This will be overridden in the derived classes. end |