aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/compat/formula.rb
diff options
context:
space:
mode:
authorBrewTestBot2015-08-03 13:09:07 +0100
committerMike McQuaid2015-08-03 13:22:35 +0100
commit13d544e11e92ba8ea3788723432046f8dfe4adf9 (patch)
treee6da18436d9ce956e6fbe80e3185c67cf3b58808 /Library/Homebrew/compat/formula.rb
parent3b68215be793774fafd9ce124a2065f5968f50e5 (diff)
downloadbrew-13d544e11e92ba8ea3788723432046f8dfe4adf9.tar.bz2
Core files style updates.
Closes Homebrew/homebrew#42354. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
Diffstat (limited to 'Library/Homebrew/compat/formula.rb')
-rw-r--r--Library/Homebrew/compat/formula.rb12
1 files changed, 7 insertions, 5 deletions
diff --git a/Library/Homebrew/compat/formula.rb b/Library/Homebrew/compat/formula.rb
index c790abc45..ee948572e 100644
--- a/Library/Homebrew/compat/formula.rb
+++ b/Library/Homebrew/compat/formula.rb
@@ -16,7 +16,7 @@ class Formula
"-DCMAKE_INSTALL_PREFIX='#{prefix}' -DCMAKE_BUILD_TYPE=None -DCMAKE_FIND_FRAMEWORK=LAST -Wno-dev"
end
- def cxxstdlib_check check_type
+ def cxxstdlib_check(check_type)
self.class.cxxstdlib_check check_type
end
@@ -44,16 +44,18 @@ class Formula
define_method(:require_universal_deps?) { true }
end
- def self.path name
+ def self.path(name)
Formulary.core_path(name)
end
DATA = :DATA
- def patches; {} end
+ def patches
+ {}
+ end
- def python(options={}, &block)
- opoo 'Formula#python is deprecated and will go away shortly.'
+ def python(_options = {}, &block)
+ opoo "Formula#python is deprecated and will go away shortly."
block.call if block_given?
PythonRequirement.new
end