Add predicate methods to Tab to match BuildOptions
This commit is contained in:
parent
cf3c12dd5b
commit
f1cf62a4b5
@ -83,9 +83,9 @@ class Tab < OpenStruct
|
||||
|
||||
def with? name
|
||||
if options.include? "with-#{name}"
|
||||
used_options.include? "with-#{name}"
|
||||
include? "with-#{name}"
|
||||
elsif options.include? "without-#{name}"
|
||||
not used_options.include? "without-#{name}"
|
||||
not include? "without-#{name}"
|
||||
else
|
||||
false
|
||||
end
|
||||
@ -100,7 +100,15 @@ class Tab < OpenStruct
|
||||
end
|
||||
|
||||
def universal?
|
||||
used_options.include? "universal"
|
||||
include?("universal")
|
||||
end
|
||||
|
||||
def cxx11?
|
||||
include?("c++11")
|
||||
end
|
||||
|
||||
def build_32_bit?
|
||||
include?("32-bit")
|
||||
end
|
||||
|
||||
def used_options
|
||||
|
Loading…
x
Reference in New Issue
Block a user