Rubocop

do not merge yet, just source for discussion.
Um, what about using HEREDOC in this case? You could get rid of "\n", escaping the double quotes and the trailing backslashes.