Skip to content

Instantly share code, notes, and snippets.

Created November 17, 2014 17:23
Show Gist options
  • Save anonymous/2c5baae1d999f4945eaf to your computer and use it in GitHub Desktop.
Save anonymous/2c5baae1d999f4945eaf to your computer and use it in GitHub Desktop.
['',''].zip(a[0].keys,a[0].values).flatten.select{|x| !x.nil? && !x.empty?}.join(' ')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment