Github tip: Proxen
Pat Nakajima added a new repo today that looks promising.
You know how usually a lot of what you do in method_missing is just figure out of the method matches some regex, then either call super or pass the args to some other method?
Proxen aims to make this clearer.
1 2 3 4 5 6 7 8 9 10 11 12 |
class Something proxy_to :other_thing, :if => /^[^_]/ def other_thing OtherThing.new end end Something.new.hello # Will be proxied Something.new._hello # Won't be proxied |
Seems like a win, since it seems to be basically just a clearer way to do what everyone is already doing.
April 03, 2009


It's "Nakajima", but I appreciate the interest anyway. :)
April 05, 2009 at 8:49 AM@pat Oops, sorry about that. Corrected above.
April 05, 2009 at 11:37 AM