Today I learned from my colleague Nicolas how you can pass in a message as a block when raising an error, it is so clean and beautiful.
Check this out:
raise InvalidString, <<~MSG if invalid_string
#{string} is not valid
Expected something else!
MSG