On 7/31/06, Gregory Brown <gregory.t.brown / gmail.com> wrote: > On 7/31/06, Suraj N. Kurapati <skurapat / ucsc.edu> wrote: > > > Agreed. method_missing is certainly the best approach. > > > > def method_missing id, *args, &blk > > if id =~ /^as_(.*)$/ > > as $1.to_sym, *args, &blk > > end > > end Found a bug in yours and a redundancy in mine. When using method_missing, always call super, otherwise you are going to leave a debugging nightmare > I have added some code that does this, you can see it here. > http://stonecode.svnrepository.com/ruport/trac.cgi/changeset/62 my send was pointless. new code here http://stonecode.svnrepository.com/ruport/trac.cgi/changeset/63 If you have any more suggestions or ideas, I'd love to hear them on the Ruport mailing list, especially since they'll be archived over there and also reach a more direct audience. Seems like my host is down right now though :-/ When it comes back up, you can find it here: http://lists.stonecode.org/listinfo.cgi/ruport-stonecode.org