Class: VivlioStarter::CLI::Metrics::LocatedSentence

Inherits:
Data
  • Object
show all
Defined in:
lib/vivlio_starter/cli/metrics/sentence_collector.rb

Overview

位置つきの 1 文。length は改行を除いた文字数。

Instance Attribute Summary collapse

Instance Attribute Details

#chapter_numObject (readonly)

Returns the value of attribute chapter_num

Returns:

  • (Object)

    the current value of chapter_num



26
27
28
# File 'lib/vivlio_starter/cli/metrics/sentence_collector.rb', line 26

def chapter_num
  @chapter_num
end

#lengthObject (readonly)

Returns the value of attribute length

Returns:

  • (Object)

    the current value of length



26
27
28
# File 'lib/vivlio_starter/cli/metrics/sentence_collector.rb', line 26

def length
  @length
end

#lineObject (readonly)

Returns the value of attribute line

Returns:

  • (Object)

    the current value of line



26
27
28
# File 'lib/vivlio_starter/cli/metrics/sentence_collector.rb', line 26

def line
  @line
end

#textObject (readonly)

Returns the value of attribute text

Returns:

  • (Object)

    the current value of text



26
27
28
# File 'lib/vivlio_starter/cli/metrics/sentence_collector.rb', line 26

def text
  @text
end