One thing I love about ruby is that mostly it is a very readable language (which is great for self-documenting code)
However, inspired by this question: Ruby Code ex
Array.pack and String.unpack for working with binary files:
# extracts four binary sint32s to four Integers in an Array data.unpack("iiii")