summaryrefslogtreecommitdiff
path: root/rake_helpers/code_statistics.rb
diff options
context:
space:
mode:
authormurphy <murphy@rubychan.de>2011-03-07 22:45:51 +0000
committermurphy <murphy@rubychan.de>2011-03-07 22:45:51 +0000
commit458af2b3548de96e9ff79772dfbdf87794285c62 (patch)
tree8930396c2dfe8f9544dd31ade215620d24d82a24 /rake_helpers/code_statistics.rb
parent5803d382b3d3f053eceba892d3de2649060840a2 (diff)
downloadcoderay-458af2b3548de96e9ff79772dfbdf87794285c62.tar.gz
minor code cleanup in code_statistics.rb
Diffstat (limited to 'rake_helpers/code_statistics.rb')
-rw-r--r--rake_helpers/code_statistics.rb12
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