Displaying a hexadecimal as a binary

puts 0x7E.to_s(2) #=> 1111110

Related