I recently realized that if you juxtapose a sequence of Ruby string literals (e.g. \'a\' \"b\" \'c\'), it\'s equivalent to the concatenation of those string lit
If you want o break a long single-quoted String-literal across multiple lines without embedding new line in it.
Simply break it into multiple adjacent string literals, the ruby interpreter will concatenate them during the parsing process.
str = "hello" "all"
puts str #=> helloall
remember though, that you must escape the newlines between the literals so that ruby does not interpret the new line as a statement terminator.
str = "hello" \
" all" \
" how are you."
puts str #=> hello all how are you