diff options
author | murphy <murphy@rubychan.de> | 2011-03-07 22:45:51 +0000 |
---|---|---|
committer | murphy <murphy@rubychan.de> | 2011-03-07 22:45:51 +0000 |
commit | 458af2b3548de96e9ff79772dfbdf87794285c62 (patch) | |
tree | 8930396c2dfe8f9544dd31ade215620d24d82a24 | |
parent | 5803d382b3d3f053eceba892d3de2649060840a2 (diff) | |
download | coderay-458af2b3548de96e9ff79772dfbdf87794285c62.tar.gz |
minor code cleanup in code_statistics.rb
-rw-r--r-- | rake_helpers/code_statistics.rb | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/rake_helpers/code_statistics.rb b/rake_helpers/code_statistics.rb index 595848f..0a2016b 100644 --- a/rake_helpers/code_statistics.rb +++ b/rake_helpers/code_statistics.rb @@ -76,10 +76,14 @@ private in_comment_block = false when in_comment_block comment_lines += 1 - when /^\s*class\b/: classes += 1 - when /^\s*module\b/: modules += 1 - when /^\s*def\b/: methods += 1 - when /^\s*#/: comment_lines += 1 + when /^\s*class\b/ + classes += 1 + when /^\s*module\b/ + modules += 1 + when /^\s*def\b/ + methods += 1 + when /^\s*#/ + comment_lines += 1 when /^=begin\b/ in_comment_block = false comment_lines += 1 |