require 'options' module Dependable RESERVED_TAGS = [:build, :optional, :recommended] def build? tags.include? :build end def optional? tags.include? :optional end def recommended? tags.include? :recommended end def required? !build? && !optional? && !recommended? end def options Options.coerce(tags - RESERVED_TAGS) end end https://git.teddywing.com/fork/homebrew' title='homebrew Git repository'/>
aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/pyenv-virtualenvwrapper.rb
blob: 687f576a2d3943c3f9aece5ffd6befff923d43d8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20