aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew
diff options
context:
space:
mode:
authorJack Nagel2014-11-03 21:36:45 -0600
committerJack Nagel2014-11-03 21:43:11 -0600
commit5d1dc0a5db4aaf840c06ac421145004b8b38bfca (patch)
tree8846f55ffb96e0c5b3cb072283db3c0fb8622bfc /Library/Homebrew
parente1bfbad810c86741c083ec897b4faa623105223a (diff)
downloadbrew-5d1dc0a5db4aaf840c06ac421145004b8b38bfca.tar.bz2
Revert "Revert "FormulaInstaller: make mode reader methods private""
This reverts commit c622f27e525de4a9cc9a209a6cc0e26be60b5919.
Diffstat (limited to 'Library/Homebrew')
-rw-r--r--Library/Homebrew/formula_installer.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/Library/Homebrew/formula_installer.rb b/Library/Homebrew/formula_installer.rb
index 80d2f5aae..23813c3e6 100644
--- a/Library/Homebrew/formula_installer.rb
+++ b/Library/Homebrew/formula_installer.rb
@@ -19,6 +19,7 @@ class FormulaInstaller
def self.mode_attr_accessor(*names)
attr_accessor(*names)
+ private(*names)
names.each do |name|
predicate = "#{name}?"
define_method(predicate) { !!send(name) }