Matthew Smillie wrote:
> 
> Hello all,
...

> 
> In general I'm asking (like the subject suggests) if my  metaprogramming 
> underpants are showing?  Have I defied any particular  conventions? Does 
> this seem like a sensible approach, and if so, a  sensible 
> implementation? Have I set myself up for some rather  spectacular failures?
> 
> Specifically, though, there are three aspects of the code that I'm  
> particularly curious whether anyone has any alternate approaches:


A suggestion: move the code that munges method_id and *params into 
separate methods.  Much easier to test and make sure it does what you 
want and that it doesn't barf on weird input.


James



-- 

http://www.ruby-doc.org       - Ruby Help & Documentation
http://www.artima.com/rubycs/ - Ruby Code & Style: Writers wanted
http://www.rubystuff.com      - The Ruby Store for Ruby Stuff
http://www.jamesbritt.com     - Playing with Better Toys
http://www.30secondrule.com   - Building Better Tools