aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/build_options.rb
diff options
context:
space:
mode:
Diffstat (limited to 'Library/Homebrew/build_options.rb')
-rw-r--r--Library/Homebrew/build_options.rb14
1 files changed, 7 insertions, 7 deletions
diff --git a/Library/Homebrew/build_options.rb b/Library/Homebrew/build_options.rb
index 64ca93173..05f8507de 100644
--- a/Library/Homebrew/build_options.rb
+++ b/Library/Homebrew/build_options.rb
@@ -4,24 +4,24 @@ class BuildOptions
@options = options
end
- def include? name
+ def include?(name)
@args.include?("--#{name}")
end
- def with? val
+ def with?(val)
name = val.respond_to?(:option_name) ? val.option_name : val
if option_defined? "with-#{name}"
include? "with-#{name}"
elsif option_defined? "without-#{name}"
- not include? "without-#{name}"
+ !include? "without-#{name}"
else
false
end
end
- def without? name
- not with? name
+ def without?(name)
+ !with? name
end
def bottle?
@@ -37,7 +37,7 @@ class BuildOptions
end
def stable?
- not (head? or devel?)
+ !(head? || devel?)
end
# True if the user requested a universal build.
@@ -67,7 +67,7 @@ class BuildOptions
private
- def option_defined? name
+ def option_defined?(name)
@options.include? name
end
end