The <<- operator on Ruby, where is it documented?

后端 未结 5 497
执笔经年
执笔经年 2020-12-03 05:31

I recently used the <<- operator to output a multi-line string, like this:

<<-form
  

Name to say hi!

5条回答
  •  遥遥无期
    2020-12-03 06:10

    This post will tell you everything you need to know about the "heredoc" string syntax. In addition, you can view the rubydoc page for string syntax.

提交回复
热议问题