On Jul 18, 2007, at 1:50 AM, Daniel Lucraft wrote:

>> On Jul 17, 6:52 pm, Jeff Pritchard <j... / jeffpritchard.com> wrote:
>>> This could be written:
>>> blah = (foo.bar||"").split
>
> Sometimes I think the brackets spoil how the expression reads. You  
> could
> define a method that looks like this:
>
> blah = foo.bar.or("").split
>
> Trainwreck though...

Then just use:

blah = foo.bar.to_s.split

It's the same thing in this case.

James Edward Gray II