C programming language allows developers to directly access the memory where variables are stored. Ruby does not allow that. There are times while working in Ruby when you need to access the underlying bits and bytes. Ruby provides two methods pack and unpack for that. Here is an example. In the above case 'A' is a string which is being stored and using unpack I am trying to read the bit value. Th