Skip to content

Instantly share code, notes, and snippets.

@tamoot
Created May 20, 2010 16:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tamoot/407747 to your computer and use it in GitHub Desktop.
Save tamoot/407747 to your computer and use it in GitHub Desktop.
ARGV.each_with_index do |arg, index|
print "#{"%02d: " % index}\t#{arg}\t=unpack=>\t[#{arg.unpack('C*').join(", ")}]\n"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment