From: mirian@... (Mirian Crzig Lennox) Date: 2002-10-30T07:05:10+09:00 Subject: Dynamically executed methods in Ruby? This is a little hard to explain, and I'm not sure if Ruby can actually do this, but here goes. I want to write a class with a method, say "method_handler" which "traps" all calls to undefined methods and executes them somehow. For example: class Foo def method_handler(meth, *args) # meth is the symbol representing the name of the method ... code to determine what happens ... end end I suspect that it may be possible to do this with an event, but I'm a little hazy on how that would work. --Mirian