[LRUG] To debug the impossible bug
Tim Cowlishaw
tim at timcowlishaw.co.uk
Wed Aug 3 04:10:54 PDT 2011
On Wed, Aug 3, 2011 at 12:06 PM, Tim Cowlishaw <tim at timcowlishaw.co.uk> wrote:
> Any monkeypatches anywhere in your code (or dependencies) that
> might've overrided the === method on NilClass? I can't think of a
> reason why anyone would want to do that, but it's probably worth a
> cursory check.
Aah - ignore me, Matthew's totally right - as you're not passing a
parameter to case, it's comparing nil to @question (which is nil) and
therefore true, so executing that branch of the case statement.
Thanks,
Tim
More information about the Chat
mailing list