Messing around with Ruby (not really anything Ruby-specific about this exercise) on the way back from visiting the folks back east. . . wrote this simple, useless quine . . .
require "base64"
class Quine
def doSomething(operation)
puts "#{Base64.decode64(operation)}
encodedBody=\"#{operation}\"
Quine.new.doSomething(encodedBody)"
end
end
encodedBody="cmVxdWlyZSAiYmFzZTY0IgoKY2xhc3MgUXVpbmUKICAKICBkZWYgZG9Tb21l
dGhpbmcob3BlcmF0aW9uKQogICAgIHB1dHMgIiN7QmFzZTY0LmRlY29kZTY0
KG9wZXJhdGlvbil9CiAgICAgZW5jb2RlZEJvZHk9XCIje29wZXJhdGlvbn1c
IgogICAgIFF1aW5lLm5ldy5kb1NvbWV0aGluZyhlbmNvZGVkQm9keSkiCiAg
ICBlbmQKZW5k"
Quine.new.doSomething(encodedBody)