From: Alex Chaffee Date: 2010-09-04T07:04:23+09:00 Subject: Re: [ANN] Wrong: an introspecting assert library On Fri, Sep 3, 2010 at 2:28 PM, Ryan Davis wrote: > > HAHAHA!... you SICK SICK BASTARDS.... HAHAHAHA! > > good work! >blush< You just made my day. >> Doesn't Ruby have poor support for AST >> introspection (see >> http://blog.zenspider.com/2009/04/parsetree-eol.html)? Well, yes, it >> does, so we cheat: we figure out what file and line the assert block >> is defined in, then open the file, read the code, and parse it >> directly Hey, I just had a thought -- maybe this technique should be called extrospection. -- Alex Chaffee - alex@cohuman.com - http://alexch.github.com Stalk me: http://friendfeed.com/alexch | http://twitter.com/alexch | http://alexch.tumblr.com