Created
June 24, 2014 09:47
-
-
Save enil/80b3b884d6c501bac5e1 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
Class.metaClass.getDimensions = { -> isArray() ? 1 + componentType.dimensions : 0 } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment