Skip to content

Instantly share code, notes, and snippets.

@2called-chaos
Created February 4, 2018 14:45
def upp_to_s(upp)
"".tap do |my_str|
upp.each_pair.with_index do |(k, v), i|
my_str << '-' if i == 6
my_str << v.to_s(16).upcase
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment