class String def inspect eval String unpack dup end end p class SmCiJjbGFzcyBTdHJpbmcKZGVmIGluc3BlY3QKZXZhbCBTdHJpbmcgdW5wYWNrIGR1cAplbmQKZW5kCnBcIGNsYXNzICVzCm5hbWUKZW5kIiVkdXAj name end
Note that non-ascii characters in the above source code will be escaped (such as \x9f).