Class: Glossarist::Validation::Rules::ConceptContext
- Inherits:
-
Object
- Object
- Glossarist::Validation::Rules::ConceptContext
- Defined in:
- lib/glossarist/validation/rules/concept_context.rb
Instance Attribute Summary collapse
-
#collection_context ⇒ Object
readonly
Returns the value of attribute collection_context.
-
#concept ⇒ Object
readonly
Returns the value of attribute concept.
-
#file_name ⇒ Object
readonly
Returns the value of attribute file_name.
Instance Method Summary collapse
- #asset_index ⇒ Object
- #bibliography_index ⇒ Object
- #concept_id ⇒ Object
- #concept_ids ⇒ Object
- #declared_languages ⇒ Object
- #gcr? ⇒ Boolean
-
#initialize(concept, file_name:, collection_context:) ⇒ ConceptContext
constructor
A new instance of ConceptContext.
- #metadata ⇒ Object
Constructor Details
#initialize(concept, file_name:, collection_context:) ⇒ ConceptContext
Returns a new instance of ConceptContext.
9 10 11 12 13 |
# File 'lib/glossarist/validation/rules/concept_context.rb', line 9 def initialize(concept, file_name:, collection_context:) @concept = concept @file_name = file_name @collection_context = collection_context end |
Instance Attribute Details
#collection_context ⇒ Object (readonly)
Returns the value of attribute collection_context.
7 8 9 |
# File 'lib/glossarist/validation/rules/concept_context.rb', line 7 def collection_context @collection_context end |
#concept ⇒ Object (readonly)
Returns the value of attribute concept.
7 8 9 |
# File 'lib/glossarist/validation/rules/concept_context.rb', line 7 def concept @concept end |
#file_name ⇒ Object (readonly)
Returns the value of attribute file_name.
7 8 9 |
# File 'lib/glossarist/validation/rules/concept_context.rb', line 7 def file_name @file_name end |
Instance Method Details
#asset_index ⇒ Object
23 24 25 |
# File 'lib/glossarist/validation/rules/concept_context.rb', line 23 def asset_index @collection_context.asset_index end |
#bibliography_index ⇒ Object
19 20 21 |
# File 'lib/glossarist/validation/rules/concept_context.rb', line 19 def bibliography_index @collection_context.bibliography_index end |
#concept_id ⇒ Object
15 16 17 |
# File 'lib/glossarist/validation/rules/concept_context.rb', line 15 def concept_id @concept.data&.id&.to_s end |
#concept_ids ⇒ Object
27 28 29 |
# File 'lib/glossarist/validation/rules/concept_context.rb', line 27 def concept_ids @collection_context.concept_ids end |
#declared_languages ⇒ Object
31 32 33 |
# File 'lib/glossarist/validation/rules/concept_context.rb', line 31 def declared_languages @collection_context.declared_languages end |
#gcr? ⇒ Boolean
39 40 41 |
# File 'lib/glossarist/validation/rules/concept_context.rb', line 39 def gcr? @collection_context.gcr? end |
#metadata ⇒ Object
35 36 37 |
# File 'lib/glossarist/validation/rules/concept_context.rb', line 35 def @collection_context. end |