From: Stefan Rusterholz Date: 2007-05-23T05:26:04+09:00 Subject: Re: Analysing ruby code unknown wrote: > No, it's a little bit more than just splitting it into lines. > It's more that I want > > [beginning of class, methode 1, methode 2, if-construct in methode 2, > the rest of methode 2, ...] > > so basicly every methode/class/if/... with their code as an own entry > in an array. > > Domenico You can use the irb tokenizer to do that. I used it to create colored HTML. It takes a bit reading into it, though. But if you know ruby a bit it's doable. Regards Stefan -- Posted via http://www.ruby-forum.com/.