Skip to content

Instantly share code, notes, and snippets.

@kenmazaika
Created December 6, 2010 19:18
Show Gist options
  • Save kenmazaika/730771 to your computer and use it in GitHub Desktop.
Save kenmazaika/730771 to your computer and use it in GitHub Desktop.
Turn a line into a hash of symbols delineated by a tab
Hash[*([:field1, :field2].zip(l.strip.split(/\t/)).flatten)]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment