Skip to content

Instantly share code, notes, and snippets.

@snackycracky
Created March 3, 2014 09:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save snackycracky/9321261 to your computer and use it in GitHub Desktop.
Save snackycracky/9321261 to your computer and use it in GitHub Desktop.
transform string
brand_market_combinations.collect{|it|it.first}.uniq.each{|brand| puts "{'#{brand}'=> [#{brand_market_combinations.find_all{|it|it.first == brand}.collect{|it| "'#{it.second}'"}.join(', ')}]}," }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment