I'm using Ruby 2.4. I have an array of strings and I want to join consecutive elements if there is a "-" between them. So, for example, if I haveI'm using Ruby 2.4. I have an array of strings
I'm using Ruby 2.4. I have an array of strings and I want to join consecutive elements if there is a "-" between them. So, for example, if I haveI'm using Ruby 2.4. I have an array of strings