aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/formula.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/Library/Homebrew/formula.rb b/Library/Homebrew/formula.rb
index 8c68ad568..82410d3e8 100644
--- a/Library/Homebrew/formula.rb
+++ b/Library/Homebrew/formula.rb
@@ -444,6 +444,7 @@ class Formula
end
raise NameError if !klass.ancestors.include? Formula
+ raise NameError if klass == Formula
return klass.new(name) if install_type == :from_name
return klass.new(name, path.to_s)