Ruby WTF

I just wrote this line in Ruby. It makes my head swim a little. Surely there is a better way of doing this, but I don’t know it.