Class: Homebrew::Bundle::Brew::Topo Private

Inherits:
Hash show all
Extended by:
T::Generic
Includes:
TSort
Defined in:
bundle/brew.rb

This class is part of a private API. This class may only be used in the Homebrew/brew repository. Third parties should avoid using this class if possible, as it may be removed or changed without warning.

Constant Summary collapse

K =

This constant is part of a private API. This constant may only be used in the Homebrew/brew repository. Third parties should avoid using this constant if possible, as it may be removed or changed without warning.

type_member { { fixed: String } }
V =

This constant is part of a private API. This constant may only be used in the Homebrew/brew repository. Third parties should avoid using this constant if possible, as it may be removed or changed without warning.

type_member { { fixed: T::Array[String] } }
Elem =

This constant is part of a private API. This constant may only be used in the Homebrew/brew repository. Third parties should avoid using this constant if possible, as it may be removed or changed without warning.

type_member(:out) { { fixed: [String, T::Array[String]] } }

Instance Method Summary collapse

Methods inherited from Hash

#assert_valid_keys, #blank?, #compact_blank, #deep_dup, #deep_merge, #deep_merge!, #deep_stringify_keys, #deep_stringify_keys!, #deep_symbolize_keys, #deep_symbolize_keys!, #deep_transform_keys, #deep_transform_keys!, #deep_transform_values, #deep_transform_values!, #present?

Instance Method Details

#each_key(&block) ⇒ Object Also known as: tsort_each_node

This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.



666
667
668
# File 'bundle/brew.rb', line 666

def each_key(&block)
  keys.each(&block)
end

#tsort_each_child(node, &block) ⇒ void

This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.

This method returns an undefined value.

Parameters:



672
673
674
# File 'bundle/brew.rb', line 672

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