JoshCheek / seeing_is_believing

Displays the results of every line of code in your file
1.31k stars 54 forks source link

Blows up on this perfectly reasonable Ruby code #62

Closed JoshCheek closed 8 years ago

JoshCheek commented 9 years ago
<<-"ab#{<<x}"
xyz
ab#{<<x}

Haven't explored it, maybe it thinks the last line is a comment?

JoshCheek commented 8 years ago

Issue is that this is double quoted, if you do it this way, it works:

<<-'ab#{<<x}'  # => "xyz\n"
xyz
ab#{<<x}