News for hackers. Stuff that matters.
Re:Show HN: Rb – Turns Ruby into a command line utility by shawn on Tuesday August 14, 2018 @12:08AM (#17755530)
In case it’s helpful, as someone who doesn't know ruby, it's hard to understand. Not too readable. Split.last.ljust I just barely understood (left-justify the last match), but I have no idea what the next part is even trying to accomplish.

It's a cool script though.

Re:Show HN: Rb – Turns Ruby into a command line utility by star-techate on Tuesday August 14, 2018 @12:14AM (#17755549)
That's the author's oneliner. I don't know what that code is for either, which is part of I rewrote it in the second set of examples.

It's normal for a oneliner to be somewhat inscrutable though, since they're often extremely dependent on their inputs. Like if it's important to fetch the 3rd, 5th, and 7th column--why? You can't tell without the input.