From: "ara.t.howard" Date: 2008-04-05T02:01:06+09:00 Subject: Re: Lookup of Capitalized Methods On Apr 4, 2008, at 10:52 AM, Trans wrote: > Yes, that's exactly the behavior, and one way, perhaps the best way, > to approach it. okay Methods = { 'foobar' => method('foobar'), 'barfoo' => method('barfoo'), } def method_missing m, *a, &b case m.to_s when %r/^[A-Z]/ Methods[m.to_s].call *a, &b else super end end may have to handle const_missing too a @ http://codeforpeople.com/ -- we can deny everything, except that we have the possibility of being better. simply reflect on that. h.h. the 14th dalai lama