Created
January 22, 2015 16:27
-
-
Save enebo/934a8d78252f51338e73 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
# ignores kwargs | |
if (rest) | |
postIndex = args.length - postCount; | |
elsif (preCount + optLength <= args.length) | |
postIndex = preCount + optLength | |
else | |
optCount = args.length - preCount - postCount | |
postIndex = preCount + optCount | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment