What is the cleanest Ruby way to convert a number to an ASCII string?
for example, a = 0x68656c6c6f should become a = "hello".
In normal C without libraries, I would use a 0xFF mask which I kept shifting. Somehow I've the feeling Ruby has shorter/less explicit ways to do this.
I'm using Ruby 1.8.7.
I dont like the fact that I need to convert it to a string first, then use.to_s(16)