Sha256: 3a06b866d1412d338885409e30aab781407783fe750a4c06e6e57879d50a0211

Contents?: true

Size: 272 Bytes

Versions: 24

Compression:

Stored size: 272 Bytes

Contents

module Riveter
  # See http://ruby-doc.org/stdlib-2.0/libdoc/tsort/rdoc/TSort.html for details
  class HashWithDependency < Hash
    include TSort

    alias tsort_each_node each_key

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

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
riveter-0.8.3 lib/riveter/hash_with_dependency.rb
riveter-0.8.2 lib/riveter/hash_with_dependency.rb
riveter-0.8.1 lib/riveter/hash_with_dependency.rb
riveter-0.8.0 lib/riveter/hash_with_dependency.rb
riveter-0.7.0 lib/riveter/hash_with_dependency.rb
riveter-0.6.0 lib/riveter/hash_with_dependency.rb
riveter-0.3.0 lib/riveter/hash_with_dependency.rb
riveter-0.2.1 lib/riveter/hash_with_dependency.rb
riveter-0.2.0 lib/riveter/hash_with_dependency.rb
riveter-0.1.1 lib/riveter/hash_with_dependency.rb
riveter-0.0.15 lib/riveter/hash_with_dependency.rb
riveter-0.0.14 lib/riveter/hash_with_dependency.rb
riveter-0.0.13 lib/riveter/hash_with_dependency.rb
riveter-0.0.12 lib/riveter/hash_with_dependency.rb
riveter-0.0.11 lib/riveter/hash_with_dependency.rb
riveter-0.0.10 lib/riveter/hash_with_dependency.rb
riveter-0.0.9 lib/riveter/hash_with_dependency.rb
riveter-0.0.8 lib/riveter/hash_with_dependency.rb
riveter-0.0.7 lib/riveter/hash_with_dependency.rb
riveter-0.0.6 lib/riveter/hash_with_dependency.rb