I'm not a fan of chaining the .join and shovel operator here because it's non-obvious.  This is especially true since we're in nested blocks.
If you could one-line this, then it might be more obvious.