aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorJack Nagel2014-11-02 19:11:18 -0600
committerJack Nagel2014-11-02 19:11:46 -0600
commit64e793c161842dea6338dd4c457e4d559b727034 (patch)
tree48d12ade3edfd39dc0371d8b3915c4167ae26fb8 /Library
parent44bff238434a48c4a8531bc2d1a29c81f18f8fab (diff)
downloadhomebrew-64e793c161842dea6338dd4c457e4d559b727034.tar.bz2
FormulaInstaller: make mode predicate methods private
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/formula_installer.rb6
1 files changed, 5 insertions, 1 deletions
diff --git a/Library/Homebrew/formula_installer.rb b/Library/Homebrew/formula_installer.rb
index 2cc00eaff..7ebf52cfd 100644
--- a/Library/Homebrew/formula_installer.rb
+++ b/Library/Homebrew/formula_installer.rb
@@ -20,7 +20,11 @@ class FormulaInstaller
def self.mode_attr_accessor(*names)
attr_accessor(*names)
private(*names)
- names.each { |name| define_method("#{name}?") { !!send(name) }}
+ names.each do |name|
+ predicate = "#{name}?"
+ define_method(predicate) { !!send(name) }
+ private(predicate)
+ end
end
attr_reader :formula