From: Jamis Buck Date: 2001-05-16T01:45:43+09:00 Subject: [ruby-talk:15184] Re: Handling undefined methods gracefully Yup, I knew I joined this list for a reason. That's exactly what I was looking for. Thanks! - Jamis On 16 May 2001 01:41:39 +0900, Dave Thomas wrote: > Jamis Buck writes: > > > In Python, there is a pretty graceful way to specify a generic routine > > to handle requests for attributes/methods that do not exist in an > > object. Is there a similar feature in Ruby? > > Have a look at > > http://www.rubycentral.com/book/ref_c_object.html#method_missing > > > Regards > > > Dave -- Jamis Buck minam@rpgplanet.com http://www.rpgplanet.com/dnd3e/generators -----BEGIN GEEK CODE BLOCK----- Version: 3.12 GCS d+(-) s:(-:-) a- C++$ U$ P+ L++$ E- W++$ o>++ K? w++ !O !M PS-(--) !V PE+ Y+ !PGP t+@ 5- X-@ R+>$ tv--@ b++ DI+(++) D--@ G e++ h--- r+++ ------END GEEK CODE BLOCK------