+1, that's one I use all the time as well. On 11/03/2009, at 1:20 PM, Christopher Robbie wrote:
> > c = a || b > > if 'a' is got something, use it, if 'a' is nil(or false) then use 'b'. > love it. > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby or Rails Oceania" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/rails-oceania?hl=en -~----------~----~----~----~------~----~------~--~---
