How to convert a string or integer to binary in Ruby? How to convert a string or integer to binary in Ruby? ruby ruby