Search code examples
rubyparsingcode-metrics

Determining the length of sections of code


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


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.