Lots of Ruby power in a small package

Apr 14, 2006 by Andre
I came across these Ruby one-liners by David P. Thomas. Very cool -- I respect the brevity and utility. Finding things like this make me like Ruby (with or without the rails part) even more.

Comments

1

assaf on Jun 08

Thanks for the tip.

I'm still struggling with awk/sed/et al, so these one-line ruby alternatives are a time saver.

Post a comment

 
This is so filters can reject the spam-bots. Thanks!