Here's how you can print and copy the commands you just typed in the ruby console.
When you work on your ruby console typing some code, you often want to copy the commands you used.
This is not so easy because the commands are mixed in with their output