Rubocop

do not merge yet, just source for discussion.
no strong opinion, so I let it as it is. Version with gsubem HEREDOC is too tricky for me.