I&#x27;m not addressing your overall point, but one thing I learned about recently that could help in debugging those Ruby one-liners is the `tap` method. You can stick it in the chain and set a breakpoint.<p><a href="http:&#x2F;&#x2F;ruby-doc.org&#x2F;core-2.2.3&#x2F;Object.html#method-i-tap" rel="nofollow">http:&#x2F;&#x2F;ruby-doc.org&#x2F;core-2.2.3&#x2F;Object.html#method-i-tap</a>