Class: Vivlio::Starter::CLI::Metrics::BasicStats

Inherits:
Data
  • Object
show all
Defined in:
lib/vivlio/starter/cli/metrics/analyzer.rb

Overview

基本統計情報を保持するイミュータブルデータ

Instance Attribute Summary collapse

Instance Attribute Details

#avg_clause_lenObject (readonly)

Returns the value of attribute avg_clause_len

Returns:

  • (Object)

    the current value of 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_lenObject (readonly)

Returns the value of attribute avg_sentence_len

Returns:

  • (Object)

    the current value of avg_sentence_len



28
29
30
# File 'lib/vivlio/starter/cli/metrics/analyzer.rb', line 28

def avg_sentence_len
  @avg_sentence_len
end

#charsObject (readonly)

Returns the value of attribute chars

Returns:

  • (Object)

    the current value of chars



28
29
30
# File 'lib/vivlio/starter/cli/metrics/analyzer.rb', line 28

def chars
  @chars
end

#chars_no_newlineObject (readonly)

Returns the value of attribute chars_no_newline

Returns:

  • (Object)

    the current value of chars_no_newline



28
29
30
# File 'lib/vivlio/starter/cli/metrics/analyzer.rb', line 28

def chars_no_newline
  @chars_no_newline
end

#clausesObject (readonly)

Returns the value of attribute clauses

Returns:

  • (Object)

    the current value of clauses



28
29
30
# File 'lib/vivlio/starter/cli/metrics/analyzer.rb', line 28

def clauses
  @clauses
end

#commasObject (readonly)

Returns the value of attribute commas

Returns:

  • (Object)

    the current value of commas



28
29
30
# File 'lib/vivlio/starter/cli/metrics/analyzer.rb', line 28

def commas
  @commas
end

#linesObject (readonly)

Returns the value of attribute lines

Returns:

  • (Object)

    the current value of lines



28
29
30
# File 'lib/vivlio/starter/cli/metrics/analyzer.rb', line 28

def lines
  @lines
end

#sentencesObject (readonly)

Returns the value of attribute sentences

Returns:

  • (Object)

    the current value of sentences



28
29
30
# File 'lib/vivlio/starter/cli/metrics/analyzer.rb', line 28

def sentences
  @sentences
end