Skip to content

Instantly share code, notes, and snippets.

@blairanderson
Created May 7, 2013 15:19
Show Gist options
  • Save blairanderson/5533439 to your computer and use it in GitHub Desktop.
Save blairanderson/5533439 to your computer and use it in GitHub Desktop.
class ETL
def self.transform(old)
result = {}
old.each do |key,value|
value.each do |new_key|
result[new_key.downcase] = key
end
end
return result
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment