Guys,

I'd like to write a code analysis tool that could read Ruby or Rails
projects (so both standard .rb files and also erb files) and do some
simple code analysis and metrics, like what methods are called (and how
many times), etc, etc.

What libraries or tools are out there that might help one accomplish this?

Thanks!

John