سؤال

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