Created
May 5, 2014 13:51
-
-
Save madrobby/bfdf61ede39448ef1e2f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def isHardwareAccelerationIsAGoodIdea | |
/[0-9]+\.[0-9]+/.match(NSProcessInfo.processInfo.operatingSystemVersionString) | |
.to_s.split('.').map(&:to_i)[1] >= 9 | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment