Class: DepthFirst::SequentialOrganizer

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

Overview

Base sequential organizer class

Direct Known Subclasses

ParallelOrganizer

Constant Summary collapse

TASKS =
[].freeze

Instance Attribute Summary

Attributes inherited from Task

#options

Instance Method Summary collapse

Methods inherited from Task

#initialize

Constructor Details

This class inherits a constructor from DepthFirst::Task

Instance Method Details

#performObject



6
7
8
9
10
# File 'lib/depth_first/sequential_organizer.rb', line 6

def perform
  tasks.reduce(options) do |hsh, task|
    hsh.merge(task.new(hsh).perform)
  end
end