Are there any things to be careful about when defining the method_missing
method in Ruby? I\'m wondering whether there are some not-so-obvious interactions fro
Building on Pistos's point: method_missing
is at least an order of magnitude slower than regular method calling on all the Ruby implementations I've tried. He is right to anticipate when possible to avoid calls to method_missing
.
If you're feeling adventurous, check out Ruby's little-known Delegator class.