From: Daniel Danopia Date: 2009-11-02T03:50:10+09:00 Subject: Re: How do you get the tail end of a string? On Oct 30, 12:21 pm, Bertram Scharpf wrote: > Hi Aldric, > > Am Samstag, 31. Okt 2009, 01:46:10 +0900 schrieb Aldric Giacomoni: > > > Bertram Scharpf wrote: > > > String#notempty? > > > Because some behavior is not there by default doesn't mean it's > > a bias. > > That's what I wanted to say: I am convinced it should be there by > default. It's just a few lines of code. It's pure logic when you > have Numeric#nonzero? and it's very useful to build default > values: > >   str.notempty? || "(none)"    # analoigous to SQL-coalesce() > So basically "String#notempty?" would be the same thing as "String#any?" ?