Flowdock
method

tsort_each_child

Importance_0
Ruby latest stable (v1_9_3_392) - 0 notes - Class: DependencyList
tsort_each_child(node, &block) public

No documentation

This method has no description. You can help the Ruby community by adding new notes.

Hide source
# File lib/rubygems/dependency_list.rb, line 216
  def tsort_each_child(node, &block)
    specs = @specs.sort.reverse

    dependencies = node.runtime_dependencies
    dependencies.push(*node.development_dependencies) if @development

    dependencies.each do |dep|
      specs.each do |spec|
        if spec.satisfies_requirement? dep then
          begin
            yield spec
          rescue TSort::Cyclic
            # do nothing
          end
          break
        end
      end
    end
  end
Register or log in to add new notes.