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

有帮助吗?

解决方案

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.

其他提示

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".)

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top