Created
December 14, 2012 15:36
-
-
Save nbfritz/4286305 to your computer and use it in GitHub Desktop.
Ruby Hash Post - Part 2: ranges as keys don't work
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
| STATUS_TYPES = { | |
| 200..208 => :success, | |
| 500..511 => :server_error | |
| } | |
| STATUS_TYPES[200] # => nil |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment