<< could be used as heredoc.
zw963 opened this issue · comments
Billy.Zheng commented
valid:
def test_heredoc
<<HEREDOC
Subscription expiring soon!
HEREDOC
end
invalid:
def test_heredoc
<<HEREDOC
Subscription expiring soon!
HEREDOC
end
puts test_heredoc
valid:
def test_heredoc
<<-HEREDOC
Subscription expiring soon!
HEREDOC
end
puts test_heredoc
BTW: for the integrality, why not plus sign
and minus sign
??
Billy.Zheng commented
supplement:
"#{}" in many language, e.g. lisp, bash shell, named: String interpolation
Juanito Fatas commented
please help send pull request :)