Brian Candler wrote: > ... > I think that's the point :-) You *have* to pass it a String source for > it to parse. You can't take an object which Ruby has already parsed and > installed, such as method(:foo) in this case, and get the sexp from the > object. One way to generate AST from live object is to use method_missing, which is applicable in 1.9 with pure ruby code. see http://rubyquiz.com/quiz95.html -- Posted via http://www.ruby-forum.com/.