Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/ruby/23.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ruby 鲁比<&书信电报;对于字符串_Ruby - Fatal编程技术网

Ruby 鲁比<&书信电报;对于字符串

Ruby 鲁比<&书信电报;对于字符串,ruby,Ruby,有人能告诉我你的名字吗 <<-MAP STRING HERE MAP 称为here doc语法。通常用于输入多行字符串。你可以在这里读到 这里的不是运算符,它是一个here文档(也称为herdoc)Stringliteral。它的工作原理与其他语言中的heredocs差不多 ISO Ruby语言规范第8.7.6.3.6节对此进行了规定

有人能告诉我你的名字吗

<<-MAP 
STRING HERE
MAP

称为here doc语法。通常用于输入多行字符串。你可以在这里读到


这里的不是运算符,它是一个here文档(也称为herdoc)
String
literal。它的工作原理与其他语言中的heredocs差不多

ISO Ruby语言规范第8.7.6.3.6节对此进行了规定