Skip to content

Instantly share code, notes, and snippets.

@joshsusser
Created October 15, 2008 14:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 3 You must be signed in to fork a gist
  • Save joshsusser/16916 to your computer and use it in GitHub Desktop.
Save joshsusser/16916 to your computer and use it in GitHub Desktop.
options.scan(/\w+=\w+/).inject({}) { |h,opt| k,v = opt.split('=',2); h[k] = v; h }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment