Class: DepthFirst::Task

Inherits:
Object
  • Object
show all
Defined in:
lib/depth_first/task.rb

Overview

Base task class

Direct Known Subclasses

SequentialOrganizer

Instance Attribute Summary collapse

Instance Method Summary collapse

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 = {})
  @options = Concurrent::Hash.new.merge(options.to_h)
end

Instance Attribute Details

#optionsObject (readonly)

Returns the value of attribute options.



4
5
6
# File 'lib/depth_first/task.rb', line 4

def options
  @options
end

Instance Method Details

#performObject



10
11
12
# File 'lib/depth_first/task.rb', line 10

def perform
  {}
end