hoodwink.d enhanced
RSS
2.0
XHTML
1.0

RedHanded

Monday

2007.03.26

Double Gets as Heredoc #

by why in inspect

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?