Class: DepthFirst::Task
- Inherits:
-
Object
- Object
- DepthFirst::Task
- Defined in:
- lib/depth_first/task.rb
Overview
Base task class
Direct Known Subclasses
Instance Attribute Summary collapse
-
#options ⇒ Object
readonly
Returns the value of attribute options.
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ Task
constructor
A new instance of Task.
- #perform ⇒ Object
Constructor Details
#initialize(options = {}) ⇒ Task
Returns a new instance of Task.
6 7 8 |
# File 'lib/depth_first/task.rb', line 6 def initialize( = {}) @options = Concurrent::Hash.new.merge(.to_h) end |
Instance Attribute Details
#options ⇒ Object (readonly)
Returns the value of attribute options.
4 5 6 |
# File 'lib/depth_first/task.rb', line 4 def @options end |
Instance Method Details
#perform ⇒ Object
10 11 12 |
# File 'lib/depth_first/task.rb', line 10 def perform {} end |