aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/dependable.rb
diff options
context:
space:
mode:
authorJack Nagel2013-05-10 23:45:06 -0500
committerJack Nagel2013-05-10 23:45:06 -0500
commit2d93935e6a4a303d4c67c9007e02bb5ba73f2644 (patch)
treef894bb6e034e320be143efbd5894c4a0f50f0b06 /Library/Homebrew/dependable.rb
parent7629d4485e9094a758ea9dfdab78f484f36c1714 (diff)
downloadbrew-2d93935e6a4a303d4c67c9007e02bb5ba73f2644.tar.bz2
Add type accessors to Dependencies
Diffstat (limited to 'Library/Homebrew/dependable.rb')
-rw-r--r--Library/Homebrew/dependable.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/Library/Homebrew/dependable.rb b/Library/Homebrew/dependable.rb
index 2a1d7d880..50ff5c90f 100644
--- a/Library/Homebrew/dependable.rb
+++ b/Library/Homebrew/dependable.rb
@@ -15,6 +15,10 @@ module Dependable
tags.include? :recommended
end
+ def required?
+ !build? && !optional? && !recommended?
+ end
+
def options
Options.coerce(tags - RESERVED_TAGS)
end