Bertram Scharpf <lists / bertram-scharpf.de> 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...)