I\'m trying to send a series of binary bytes across a socket, to meet a particular standard my company uses. No one in my company has used Ruby for this before, but in other lan
Have a look at the String.unpack method. This is an example:
str = "1010" str.unpack("cccc") => [49, 48, 49, 48]
This will give you integer values. There are more ways to do the conversion.