Sha256: c0322ec723466570d613dd10f87e3ff76cafc39b6f795c376c2755b789e374b7

Contents?: true

Size: 292 Bytes

Versions: 2

Compression:

Stored size: 292 Bytes

Contents

module DepthFirst
  # Base serial organizer class
  class SerialOrganizer < Task
    TASKS = [].freeze

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

    private

    def tasks
      self.class::TASKS
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
depth_first-0.0.2 lib/depth_first/serial_organizer.rb
depth_first-0.0.1 lib/depth_first/serial_organizer.rb