a simple hex dump tool
gem install hexd
as an executable:
hexd README.md cat README.md | hexd
as a library:
require 'hexd' File.open('README.md') do |file| Hexd::Dump.new(file).each do |line| puts line end end