Double Gets as Heredoc

Send to friend

From John Joyce in [ruby-talk:245343]:

I’m a little surprised at this.
In irb, I tried puts gets gets.
Why? I don’t know.
But basically, gets gets, seems to almost act like a heredoc!

Such a simple and unintended thing: the double-gets. Do you see how it works?