Created
April 23, 2014 20:45
-
-
Save kinsteronline/11231760 to your computer and use it in GitHub Desktop.
Pick what you need from a hash
This file contains hidden or 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
warrior = { str: 17, int: 8, dex: 12, con: 16, luk: 10 } | |
strength, dexterity, luck = warrior.values_at(:str, :dex, :luk) | |
to_hit = strength ... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment