On Feb 3, 2005, at 11:51 AM, Joe Van Dyk wrote:

> Here's what I have so far.  This works, but wondering if something
> better's out there.
>
>     def method_missing(method, *args)
>         puts "method missing called with #{method} and #{args}"
>
>         if method.to_s =~ /^(.+)=$/
>             set($1.to_sym, *args)
>         else
>             get(method.to_sym)
>         end
>     end

That looks fine to me. I, by habit/musclememory, use intern instead of 
to_sym. You shouldn't need to do it for your get as method_missing 
should be passed a symbol in the first place.