Class: CodeRay::Encoders::Statistic
- Includes:
- Streamable
- Defined in:
- lib/coderay/encoders/statistic.rb
Overview
Makes a statistic for the given tokens.
Defined Under Namespace
Classes: TypeStats
Constant Summary
Constants inherited from Encoder
Instance Attribute Summary collapse
-
#real_token_count ⇒ Object
readonly
Returns the value of attribute real_token_count.
-
#type_stats ⇒ Object
readonly
Returns the value of attribute type_stats.
Attributes inherited from Encoder
Method Summary
Methods inherited from Encoder
const_missing, #encode, #encode_stream, #encode_tokens, #file_extension, #initialize, streamable?, #to_proc
Methods included from Plugin
#helper, #included, #plugin_host, #plugin_id, #register_for, #title
Constructor Details
This class inherits a constructor from CodeRay::Encoders::Encoder
Instance Attribute Details
#real_token_count ⇒ Object (readonly)
Returns the value of attribute real_token_count.
10 11 12 |
# File 'lib/coderay/encoders/statistic.rb', line 10 def real_token_count @real_token_count end |
#type_stats ⇒ Object (readonly)
Returns the value of attribute type_stats.
10 11 12 |
# File 'lib/coderay/encoders/statistic.rb', line 10 def type_stats @type_stats end |