In IRB there’s a `copy` command that will copy to your clipboard.
@soulcutter I’m on a Mac. I didn’t realize there was a builtin Copy in IRB, but for years I’ve used `pbcopy` to copy to the clipboard and `pbpaste` to paste from the clipboard.
(pb is for PasteBoard, which is often used interchangeably with clipboard.
lines = `pbpaste`.split("\n")
is a command I use all the time to get lines of text from the clipboard into an array