原文载于:http://robinwu.iteye.com/blog/145514

 

其中最重要的、忽略一切转义字符、多行大包围、相当于''的多行版本

1 str = <<'EOF'   
2 This isn't a tab: \t
3 and this isn't a newline: \n
4 EOF
5
6 puts str



相关文章:

  • 2021-06-01
  • 2021-09-07
  • 2022-01-25
  • 2022-02-06
  • 2021-12-24
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-05-27
  • 2022-12-23
  • 2021-07-21
  • 2021-06-13
相关资源
相似解决方案