From: mortee Date: 2007-10-12T02:02:02+09:00 Subject: Re: Using strings to drill down into objects Brian Adkins wrote: > Are you sure about that? > > brian@imagine:~$ irb > irb(main):001:0> x ||= 7 > => 7 > irb(main):002:0> x > => 7 Sorry, you're right. I've never tried this actually on an undefined local variable - and I guessed it would first try to evaluate x, which would raise an exception. Thanks for pointing that out, I'm happy to have learnt it (: mortee