From: George Ogata Date: 2006-03-14T10:25:07+09:00 Subject: Re: Proposal: String#notempty? Bertram Scharpf writes: > Hi, > > I oftenly use `Numeric#nonzero?'. Actually, I miss its > equivalent, a method maybe `String#notempty?', returning > the string if it has a length and nil otherwise. > > It wasn't difficult to write and it's not using much space: > > http://www.bertram-scharpf.de/tmp/notempty.patch > > Do you think it is worth being included? Just an idea -- what if: foo.bar.baz.blib.blob.blah.!empty? were to mean: !foo.bar.baz.blib.blob.blah.empty? (I can already hear the conservatives swooping down to peck my eyeballs out...)