Class: VivlioStarter::CLI::Metrics::BasicStats
- Inherits:
-
Data
- Object
- Data
- VivlioStarter::CLI::Metrics::BasicStats
- Defined in:
- lib/vivlio_starter/cli/metrics/analyzer.rb
Overview
基本統計情報を保持するイミュータブルデータ。
chars / chars_no_newline は生の分量。code_chars / notation_chars は全空白を
除いた内訳で、本文(VocabularyStats#total_char_count)と足すと
「生から全空白を除いた長さ」に一致する。
Instance Attribute Summary collapse
-
#avg_clause_len ⇒ Object
readonly
Returns the value of attribute avg_clause_len.
-
#avg_sentence_len ⇒ Object
readonly
Returns the value of attribute avg_sentence_len.
-
#chars ⇒ Object
readonly
Returns the value of attribute chars.
-
#chars_no_newline ⇒ Object
readonly
Returns the value of attribute chars_no_newline.
-
#clauses ⇒ Object
readonly
Returns the value of attribute clauses.
-
#code_chars ⇒ Object
readonly
Returns the value of attribute code_chars.
-
#commas ⇒ Object
readonly
Returns the value of attribute commas.
-
#lines ⇒ Object
readonly
Returns the value of attribute lines.
-
#notation_chars ⇒ Object
readonly
Returns the value of attribute notation_chars.
-
#sentences ⇒ Object
readonly
Returns the value of attribute sentences.
Instance Attribute Details
#avg_clause_len ⇒ Object (readonly)
Returns the value of attribute avg_clause_len
34 35 36 |
# File 'lib/vivlio_starter/cli/metrics/analyzer.rb', line 34 def avg_clause_len @avg_clause_len end |
#avg_sentence_len ⇒ Object (readonly)
Returns the value of attribute avg_sentence_len
34 35 36 |
# File 'lib/vivlio_starter/cli/metrics/analyzer.rb', line 34 def avg_sentence_len @avg_sentence_len end |
#chars ⇒ Object (readonly)
Returns the value of attribute chars
34 35 36 |
# File 'lib/vivlio_starter/cli/metrics/analyzer.rb', line 34 def chars @chars end |
#chars_no_newline ⇒ Object (readonly)
Returns the value of attribute chars_no_newline
34 35 36 |
# File 'lib/vivlio_starter/cli/metrics/analyzer.rb', line 34 def chars_no_newline @chars_no_newline end |
#clauses ⇒ Object (readonly)
Returns the value of attribute clauses
34 35 36 |
# File 'lib/vivlio_starter/cli/metrics/analyzer.rb', line 34 def clauses @clauses end |
#code_chars ⇒ Object (readonly)
Returns the value of attribute code_chars
34 35 36 |
# File 'lib/vivlio_starter/cli/metrics/analyzer.rb', line 34 def code_chars @code_chars end |
#commas ⇒ Object (readonly)
Returns the value of attribute commas
34 35 36 |
# File 'lib/vivlio_starter/cli/metrics/analyzer.rb', line 34 def commas @commas end |
#lines ⇒ Object (readonly)
Returns the value of attribute lines
34 35 36 |
# File 'lib/vivlio_starter/cli/metrics/analyzer.rb', line 34 def lines @lines end |
#notation_chars ⇒ Object (readonly)
Returns the value of attribute notation_chars
34 35 36 |
# File 'lib/vivlio_starter/cli/metrics/analyzer.rb', line 34 def notation_chars @notation_chars end |
#sentences ⇒ Object (readonly)
Returns the value of attribute sentences
34 35 36 |
# File 'lib/vivlio_starter/cli/metrics/analyzer.rb', line 34 def sentences @sentences end |