diff options
| author | Jack Nagel | 2014-07-31 16:32:04 -0500 |
|---|---|---|
| committer | Jack Nagel | 2014-07-31 16:36:54 -0500 |
| commit | fad2e26395f09d78e51a9da5965e28d72b3c9cc2 (patch) | |
| tree | a097b94312cab46e827ffb53bdbd124c87208db2 | |
| parent | b160cc9bb64561f28856864d20ce858cb0c26064 (diff) | |
| download | brew-fad2e26395f09d78e51a9da5965e28d72b3c9cc2.tar.bz2 | |
Reduce direct accesses of the args collection
| -rw-r--r-- | Library/Homebrew/build_options.rb | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/Library/Homebrew/build_options.rb b/Library/Homebrew/build_options.rb index cbfa790d2..85c53c354 100644 --- a/Library/Homebrew/build_options.rb +++ b/Library/Homebrew/build_options.rb @@ -81,15 +81,15 @@ class BuildOptions end def bottle? - args.include? '--build-bottle' + include? "build-bottle" end def head? - args.include? '--HEAD' + include? "HEAD" end def devel? - args.include? '--devel' + include? "devel" end def stable? @@ -98,19 +98,19 @@ class BuildOptions # True if the user requested a universal build. def universal? - universal || args.include?('--universal') && has_option?('universal') + universal || include?("universal") && has_option?("universal") end # True if the user requested to enable C++11 mode. def cxx11? - args.include?('--c++11') && has_option?('c++11') + include?("c++11") && has_option?("c++11") end # Request a 32-bit only build. # This is needed for some use-cases though we prefer to build Universal # when a 32-bit version is needed. def build_32_bit? - args.include?('--32-bit') && has_option?('32-bit') + include?("32-bit") && has_option?("32-bit") end def used_options |
