aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/dependency.rb
diff options
context:
space:
mode:
authorJack Nagel2013-01-30 22:54:39 -0600
committerJack Nagel2013-01-31 15:40:06 -0600
commitc5f73a01bec87f6c4d3c6b29676b82cc922187af (patch)
tree10e5d331e413f578d485383c160076d05b502c3e /Library/Homebrew/dependency.rb
parent1408610b81eb3a2977474d548769f7405d4cf085 (diff)
downloadbrew-c5f73a01bec87f6c4d3c6b29676b82cc922187af.tar.bz2
Update documentation for Dependency.expand
Diffstat (limited to 'Library/Homebrew/dependency.rb')
-rw-r--r--Library/Homebrew/dependency.rb12
1 files changed, 6 insertions, 6 deletions
diff --git a/Library/Homebrew/dependency.rb b/Library/Homebrew/dependency.rb
index 331082219..34320a31b 100644
--- a/Library/Homebrew/dependency.rb
+++ b/Library/Homebrew/dependency.rb
@@ -54,11 +54,11 @@ class Dependency
tags << 'universal' if to_formula.build.has_option? 'universal'
end
- # Expand the dependencies of f recursively, optionally yielding
- # [f, dep] to allow callers to apply arbitrary filters to the list.
- # The default filter, which is used when a block is not supplied,
- # omits optionals and recommendeds based on what the dependent has
- # asked for.
+ # Expand the dependencies of dependent recursively, optionally yielding
+ # [dependent, dep] pairs to allow callers to apply arbitrary filters to
+ # the list.
+ # The default filter, which is applied when a block is not given, omits
+ # optionals and recommendeds based on what the dependent has asked for.
def self.expand(dependent, &block)
dependent.deps.map do |dep|
prune = catch(:prune) do
@@ -75,7 +75,7 @@ class Dependency
end.flatten.compact.uniq
end
- # Used to prune dependencies when calling expand_dependencies with a block.
+ # Used to prune dependencies when calling expand with a block.
def self.prune
throw(:prune, true)
end