A handy feature of Ruby is that it lets you assign multiple variables at once. While doing this all the time is not encouraged, where it makes the code more readable/understandable it is certainly something to try.
It's as simple as:
But beware, although the outcome technically makes sense this might be unexpected in some situations:
There are a heap of uses for this kind of thing.
Personally, I think splitting names is one of the better examples of a good time to use multiple variable setting. What do you think?