This is very close to what the ruby REPL will accept.
I tried to paste in the kitchen sink - it didn't like dangling decimals and the comment format, everything else worked as expected.