Library/Homebrew/requirement.rb
# Expand the requirements of dependent recursively, optionally yielding
# [dependent, req] 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.
Expand the requirements of dependent recursively, optionally yielding
[dependent, req] 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.
Expand the requirements of dependent recursively optionally yielding [ dependent req ] 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 prune?(dependent, req, &block)
      catch(:prune) do
        if block_given?
          yield dependent, req
        elsif req.optional? || req.recommended?
          prune unless dependent.build.with?(req)
        end
      end
    end
def prune? ( dependent , req , & block ) catch ( :prune ) do if block_given? yield dependent , req elsif req . optional? || req . recommended? prune unless dependent . build . with? ( req ) end end end
Expand the requirements of dependent recursively, optionally yielding
[dependent, req] pairs to allow callers to apply arbitrary filters to
the list.
Expand the requirements of dependent recursively optionally yielding [ dependent req ] pairs to allow callers to apply arbitrary filters to the list .
dependent
<not_specific>
req
<not_specific>
block
<not_specific>