[prev in list] [next in list] [prev in thread] [next in thread] 

List:       ruby-talk
Subject:    Re: Scope of Singleton Classes
From:       "Jason Voegele" <jason () jvoegele ! com>
Date:       2002-05-02 17:46:51
[Download RAW message or body]

>>>>>> "J" == Jason Voegele <jason@jvoegele.com> writes:
> 
> J> def method_missing(operation, *args)
> J>     op = lookup_operation(klass, operation) # slow
> J>     class << self
> J>         define_method(operation, args) do |*opargs|
> J>             send_iiop_request(...)
> J>         end
> J>     end
> J> end
> 
>  There is a stupid way to write it in 1.7.2, small problem with 1.6.7
[snip]

Thanks, Guy.  That seems to do the trick.

Jason Voegele



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic