Skip to content

Instantly share code, notes, and snippets.

@adelcambre
Forked from joshsusser/gist:16916
Created October 15, 2008 16:28
Show Gist options
  • Save adelcambre/16946 to your computer and use it in GitHub Desktop.
Save adelcambre/16946 to your computer and use it in GitHub Desktop.
options.scan(/(\w+)=(\w+)/).inject({}) { |h,(k,v)| h[k] = v; h }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment