From: Bertram Scharpf Date: 2009-10-31T03:31:17+09:00 Subject: Re: How do you get the tail end of a string? Hi, Am Samstag, 31. Okt 2009, 02:32:25 +0900 schrieb Aldric Giacomoni: > Bertram Scharpf wrote: > > > > str.notempty? || "(none)" # analoigous to SQL-coalesce() > > > > I guess it would be more useful than flip-flops or class variables. > > So do like everyone else and extend the language to your liking ;-) I did years ago: http://bertram-scharpf.homelinux.com:8808/doc_root/bs-ruby-2.7/rdoc/classes/String.src/M000090.html What I meant is that it should reside in the same unit where Numeric#nonzero? lies. Bertram -- Bertram Scharpf Stuttgart, Deutschland/Germany http://www.bertram-scharpf.de