I’ve heard something like this somewhere before…

Aristotle on 2009-01-14T05:36:30

Reginald Braithwaite:

Also, I reject the argument that responds_to? checking is buggy because some people write method_missing magic that breaks it. I reject the argument because I reject as buggy any code such that object o responds to method m but o.responds_to?(:m) => false. If you implement your own method_missing for a class, you should almost always implement your own responds_to? as well.


I'm sure you must be mistaken

siracusa on 2009-01-14T13:38:06

Ruby is the first language to support such powerful meta-programming. These guys are on the cutting edge!