Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Tab#with? to mirror BuildOptions#with?

Eventually a common interface could be factored out into a module, but
for now this will suffice.
  • Loading branch information...
commit edffb4f291fb9507e81880794e937a6a3d52abe5 1 parent a875e09
@jacknagel authored
Showing with 12 additions and 2 deletions.
  1. +12 −2 Library/Homebrew/tab.rb
View
14 Library/Homebrew/tab.rb
@@ -58,8 +58,18 @@ def self.dummy_tab f=nil
:HEAD => nil
end
- def installed_with? opt
- used_options.include? opt
+ def with? name
+ if options.include? "with-#{name}"
+ used_options.include? "with-#{name}"
+ elsif options.include? "without-#{name}"
+ not used_options.include? "without-#{name}"
+ else
+ false
+ end
+ end
+
+ def universal?
+ used_options.include? "universal"
end
def used_options
Please sign in to comment.
Something went wrong with that request. Please try again.