Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- String
- ------
- ### Heredoc ###
- ทำให้เขียน string ในหลายบรรทัดได้ วิธีการคือ ใส่ `<<word` ไว้ที่หัวเมื่อต้องการใช้ heredoc และปิดด้วย `word` เมื่อต้องการปิดข้อความ (ซึ่ง `word` คือคำอะไรก็ได้)
- ### Example ###
- hdoc1 = <<EODOC
- I wandered lonely as a #{"cloud".upcase}
- That floats on high o'er vale and hill...
- EODOC
Add Comment
Please, Sign In to add comment