Class: VivlioStarter::CLI::PreProcessCommands::IssueRegistry::Counts

Inherits:
Data
  • Object
show all
Defined in:
lib/vivlio_starter/cli/pre_process/issue_registry.rb

Overview

重要度別の件数。counts / summary_by_chapter の戻り値。

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#errorsObject (readonly)

Returns the value of attribute errors

Returns:

  • (Object)

    the current value of errors



32
33
34
# File 'lib/vivlio_starter/cli/pre_process/issue_registry.rb', line 32

def errors
  @errors
end

#warnsObject (readonly)

Returns the value of attribute warns

Returns:

  • (Object)

    the current value of warns



32
33
34
# File 'lib/vivlio_starter/cli/pre_process/issue_registry.rb', line 32

def warns
  @warns
end

Instance Method Details

#clean?Boolean

Returns:

  • (Boolean)


34
# File 'lib/vivlio_starter/cli/pre_process/issue_registry.rb', line 34

def clean? = total.zero?

#totalObject



33
# File 'lib/vivlio_starter/cli/pre_process/issue_registry.rb', line 33

def total = errors + warns