aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
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