From: Phlip Date: 2009-03-02T22:48:49+09:00 Subject: Re: Rub 1.9: "inline rescue" doesn't work? Michal Suchanek wrote: >> aaa = obj.respond_to?(:capitalize) ? obj.capitalize : 444 > I'd see it as a Ruby's failure that the proper check is against DRY. DRY is most egregious when the duplicated components are far apart from each other. (And hence harder to spot!) Duplicating things right next to each other is Mostly Harmless, and it's always the next best thing if you can't think of the final refactor. -- Phlip http://www.zeroplayer.com/