Class: Vivlio::Starter::CLI::Metrics::BasicStats
- Inherits:
-
Data
- Object
- Data
- Vivlio::Starter::CLI::Metrics::BasicStats
- Defined in:
- lib/vivlio/starter/cli/metrics/analyzer.rb
Overview
基本統計情報を保持するイミュータブルデータ
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.
-
#commas ⇒ Object
readonly
Returns the value of attribute commas.
-
#lines ⇒ Object
readonly
Returns the value of attribute lines.
-
#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
28 29 30 |
# File 'lib/vivlio/starter/cli/metrics/analyzer.rb', line 28 def avg_clause_len @avg_clause_len end |
#avg_sentence_len ⇒ Object (readonly)
Returns the value of attribute avg_sentence_len
28 29 30 |
# File 'lib/vivlio/starter/cli/metrics/analyzer.rb', line 28 def avg_sentence_len @avg_sentence_len end |
#chars ⇒ Object (readonly)
Returns the value of attribute chars
28 29 30 |
# File 'lib/vivlio/starter/cli/metrics/analyzer.rb', line 28 def chars @chars end |
#chars_no_newline ⇒ Object (readonly)
Returns the value of attribute chars_no_newline
28 29 30 |
# File 'lib/vivlio/starter/cli/metrics/analyzer.rb', line 28 def chars_no_newline @chars_no_newline end |
#clauses ⇒ Object (readonly)
Returns the value of attribute clauses
28 29 30 |
# File 'lib/vivlio/starter/cli/metrics/analyzer.rb', line 28 def clauses @clauses end |
#commas ⇒ Object (readonly)
Returns the value of attribute commas
28 29 30 |
# File 'lib/vivlio/starter/cli/metrics/analyzer.rb', line 28 def commas @commas end |
#lines ⇒ Object (readonly)
Returns the value of attribute lines
28 29 30 |
# File 'lib/vivlio/starter/cli/metrics/analyzer.rb', line 28 def lines @lines end |
#sentences ⇒ Object (readonly)
Returns the value of attribute sentences
28 29 30 |
# File 'lib/vivlio/starter/cli/metrics/analyzer.rb', line 28 def sentences @sentences end |