On Nov 10, 2005, at 3:10 PM, John Lam wrote:

>>
>> It's nice, but is there a way to reflect on the .NET target and  
>> get at
>> least
>> the methods all-at-once rather than using method missing? That way  
>> you
>> have
>> the advantage of respond_to? etc. rather than having to refer use  
>> a method
>> first.
>>
>
> I could get the methods all at once, but I use method_missing to  
> determine
> which shims I should dynamically construct. Each shim carries some  
> amount of
> overhead associated with it in terms of both time and space. I'd  
> like to
> avoid constructing shims for methods that are never called.
>
I wonder if you could override respond_to? and tell it to return  
'true' if the method exists virtually.

Duane Johnson
(canadaduane)