Created
March 3, 2014 09:14
-
-
Save snackycracky/9321261 to your computer and use it in GitHub Desktop.
transform string
This file contains 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
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