On Tue, Jan 31, 2012 at 15:12, Robert Klemme <shortcutter / googlemail.com>wrote:

>
> [snip]
>
> 16:11:44 ~$ cat -n x
>     1  str=%q{
>     2  there are "double" and 'single'
>     3  quotes!
>     4  And even #{does not} harm.
>     5  }
>     6  puts str
>     7  p str
> 16:11:46 ~$


But!

$ ruby -e '%q{{}'
-e:1: unterminated string meets end of file