Sha256: c9083d127dca23fc2f2f6ed2218fb2cd07416ac775c6bbc874ef4027cb028fe5

Contents?: true

Size: 251 Bytes

Versions: 7

Compression:

Stored size: 251 Bytes

Contents

require 'tsort'

module PowerStencil
  module Utils

    class DependencySolver < Hash

      include TSort

      alias tsort_each_node each_key

      def tsort_each_child(node, &block)
        fetch(node).each(&block)
      end

    end

  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
power_stencil-0.10.0 lib/power_stencil/utils/dependency_solver.rb
power_stencil-0.9.8 lib/power_stencil/utils/dependency_solver.rb
power_stencil-0.9.7 lib/power_stencil/utils/dependency_solver.rb
power_stencil-0.9.6 lib/power_stencil/utils/dependency_solver.rb
power_stencil-0.9.5 lib/power_stencil/utils/dependency_solver.rb
power_stencil-0.9.4 lib/power_stencil/utils/dependency_solver.rb
power_stencil-0.9.3 lib/power_stencil/utils/dependency_solver.rb