Thursday, October 1, 2009

Strip

I like simplicity, which is one of the many reason I love Ruby. And it doesn't get much simpler than the strip method:

"spaces ".strip #=> "spaces"

It's the little things in life that make me happy.

No comments:

Post a Comment