Whenever I talk to Rubyists I hear great things about method_added
and method_missing
. However, I got recently chided for using both in a project. The argument was that another library (such as rspec, for example) could overload the methods too and put the program in a strange state depending on which version of method_missing
got called first.
I'm curious to know how often this happens. Is it really that dangerous to overload method_missing
? Does anyone have real-world examples of woe arising from method_missing
conflicts?