./lib/coderay/encoders/statistic.rb in coderay-0.7.4.215 vs ./lib/coderay/encoders/statistic.rb in coderay-0.8.260
- old
+ new
@@ -26,20 +26,16 @@
def text_token text, kind
@real_token_count += 1 unless kind == :space
@type_stats[kind].count += 1
@type_stats[kind].size += text.size
@type_stats['TOTAL'].size += text.size
+ @type_stats['TOTAL'].count += 1
end
# TODO Hierarchy handling
def block_token action, kind
- #@content_type = kind
- @type_stats['open/close'].count += 1
- end
-
- def token text, kind
- super
@type_stats['TOTAL'].count += 1
+ @type_stats['open/close'].count += 1
end
STATS = <<-STATS
Code Statistics