diff options
| author | BrewTestBot | 2015-08-03 13:09:07 +0100 |
|---|---|---|
| committer | Mike McQuaid | 2015-08-03 13:22:35 +0100 |
| commit | 13d544e11e92ba8ea3788723432046f8dfe4adf9 (patch) | |
| tree | e6da18436d9ce956e6fbe80e3185c67cf3b58808 /Library/Homebrew/build_options.rb | |
| parent | 3b68215be793774fafd9ce124a2065f5968f50e5 (diff) | |
| download | brew-13d544e11e92ba8ea3788723432046f8dfe4adf9.tar.bz2 | |
Core files style updates.
Closes Homebrew/homebrew#42354.
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
Diffstat (limited to 'Library/Homebrew/build_options.rb')
| -rw-r--r-- | Library/Homebrew/build_options.rb | 14 |
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 |
