It's Ruby. And yes, it could be simpler as a plain, pure function. There is nothing that warrants having the temporary objects, no tricky long-lived state, no leased/shared resource, etc
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments