Skip to content

Instantly share code, notes, and snippets.

@alepez
Last active December 18, 2015 21:49
Show Gist options
  • Save alepez/5849982 to your computer and use it in GitHub Desktop.
Save alepez/5849982 to your computer and use it in GitHub Desktop.
midentify output to hash
def midentify(filename)
data = {}
`midentify "#{filename}"`.split("\n").each do |i|
m = i.split('=')
data[m[0]] = m[1]
end
return data
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment