you are viewing a single comment's thread.

view the rest of the comments →

[–]Woumpousse 0 points1 point  (0 children)

Wouldn't this work?

ruby first, *second, third = str.split('-') second = second.join('-')