Method: CodeRay::Encoders::Statistic#text_token
- Defined in:
- lib/coderay/encoders/statistic.rb
#text_token(text, kind) ⇒ Object
62 63 64 65 66 67 68 |
# File 'lib/coderay/encoders/statistic.rb', line 62 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 |