Top "Method-missing" questions

The Ruby method that is invoked on an object when you send it a message (or call a method) that it doesn't understand.

Ruby - method_missing

I'm trying to implement a method_missing for converting $ to other currencies, as in doing 5.dollars yields 5, 5.yen would yield 0.065 5.…

ruby metaprogramming method-missing
Ruby’s “method_missing” in Python

Possible Duplicate: Python equivalent of Ruby's 'method_missing' Is there any technique available in Python for intercepting messages (method calls) …

python metaprogramming method-missing
Ruby - ArgumentError: wrong number of arguments (2 for 1)

I have the following class overwrite: class Numeric @@currencies = {:dollar => 1, :yen => 0.013, :euro => 1.292, :rupee => 0.019} def method_missing(…

ruby metaprogramming numeric method-missing
Python equivalent of Ruby's 'method_missing'

What is Python's equivalent of Ruby's method_missing method? I tried using __getattr__ but this hook applies to fields too. …

python ruby oop metaprogramming method-missing