Misc #17872 ยป ruby-doc-syntax_literals-heredocs-extra_word.patch
| doc/syntax/literals.rdoc | ||
|---|---|---|
|
That might span many lines
|
||
|
INDENTED_HEREDOC
|
||
|
Note that the while the closing identifier may be indented, the content is
|
||
|
always treated as if it is flush left. If you indent the content those spaces
|
||
|
will appear in the output.
|
||
|
Note that while the closing identifier may be indented, the content is always
|
||
|
treated as if it is flush left. If you indent the content those spaces will
|
||
|
appear in the output.
|
||
|
To have indented content as well as an indented closing identifier, you can use
|
||
|
a "squiggly" heredoc, which uses a "~" instead of a "-" after <tt><<</tt>:
|
||