aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorJack Nagel2015-02-23 21:38:36 -0500
committerJack Nagel2015-02-23 21:38:36 -0500
commit1dc4412f692a3229ae4a983cf0ccef55f39436c0 (patch)
treea34880f2534ba68f0afc9d1c07ebe001341f2b87 /Library
parent6e92716642701261062614f351bfd00086778049 (diff)
downloadbrew-1dc4412f692a3229ae4a983cf0ccef55f39436c0.tar.bz2
Provide Hardware::CPU.feature?
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/hardware.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/Library/Homebrew/hardware.rb b/Library/Homebrew/hardware.rb
index 81bea766c..a49995a88 100644
--- a/Library/Homebrew/hardware.rb
+++ b/Library/Homebrew/hardware.rb
@@ -42,6 +42,10 @@ class Hardware
def features
[]
end
+
+ def feature?(name)
+ features.include?(name)
+ end
end
if OS.mac?