Question

Is there a tool that parses a Ruby script (MRI/YARV) and gives statistics of how many lines each module/class/method definition is?

Était-ce utile?

La solution

What do you mean by MRI/YARV? A script doesn't have an implementation associated with it. The tool may be associated with a particular implementation, though.

There may be such a tool in the code metrics section of Ruby Toolbox.

Autres conseils

Saikuro will do this. It's also included in metric_fu, which makes it easy to run Saikuro and many other code metrics tools.

(Be careful, the saikuro gem is probably not what you want, instead it's Saikuro with a capital "S".)

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top