Provide Hardware::CPU.feature?
This commit is contained in:
parent
6e92716642
commit
1dc4412f69
@ -42,6 +42,10 @@ class Hardware
|
|||||||
def features
|
def features
|
||||||
[]
|
[]
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def feature?(name)
|
||||||
|
features.include?(name)
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
if OS.mac?
|
if OS.mac?
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user