Module: Glossarist::V3::DefinitionType

Defined in:
lib/glossarist/v3/definition_type.rb

Overview

DefinitionType — ISO 704:2022 §5.3 definition strategy constants.

SSOT for the set of definition-type values. DetailedDefinition#type reads VALUES from here, not from GlossaryDefinition. The config (config.yml) feeds GlossaryDefinition::DEFINITION_TYPE_VALUES, which is consumed here so the source-of-truth chain is:

config.yml  GlossaryDefinition::DEFINITION_TYPE_VALUES
            DefinitionType::VALUES  (consumer-facing)
            DetailedDefinition#type (model attribute)

Constant Summary collapse

INTENSIONAL =
"intensional"
EXTENSIONAL =
"extensional"
PARTITIVE =
"partitive"
TRANSLATED =
"translated"
DEFAULT =
INTENSIONAL
VALUES =
Glossarist::GlossaryDefinition::DEFINITION_TYPE_VALUES.freeze

Class Method Summary collapse

Class Method Details

.valid?(value) ⇒ Boolean

Returns:

  • (Boolean)


25
26
27
# File 'lib/glossarist/v3/definition_type.rb', line 25

def self.valid?(value)
  VALUES.include?(value)
end