Skip to content

Instantly share code, notes, and snippets.

@nbfritz
Created December 14, 2012 15:36
Show Gist options
  • Select an option

  • Save nbfritz/4286305 to your computer and use it in GitHub Desktop.

Select an option

Save nbfritz/4286305 to your computer and use it in GitHub Desktop.
Ruby Hash Post - Part 2: ranges as keys don't work
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