Subject: Re: errors with respond_to? and inject
From: "Sbastien M." <stkfdt gmail.com>
Date: Thu, 1 Dec 2011 09:26:10 +0900
References: 390706
In-reply-to: 390706
Quick question though
Why don(t u need the 'respond_to?' method
We still have to check if object has a price method in order to return
nil
if not. Or is there something i missed?
--
Posted via http://www.ruby-forum.com/.