Weird Ruby: Positive and Negative Strings
https://metaredux.com/posts/2019/05/10/weird-ruby-positive-and-negative-strings.html [metaredux.com]
2019-05-10 15:29
Turns out that when frozen string literals were introduced in Ruby 2.3 a couple of unary methods were added to the String class - namely unary + and -. They made it possible to have “positive” and “negative” string literals. What does this mean exactly? Let’s figure this out together!
source: L