Class: Pubid::Cie::Identifiers::Corrigendum
- Inherits:
-
SupplementIdentifier
- Object
- Lutaml::Model::Serializable
- Identifier
- Pubid::Cie::Identifier
- SupplementIdentifier
- Pubid::Cie::Identifiers::Corrigendum
- Defined in:
- lib/pubid/cie/identifiers/corrigendum.rb
Overview
Corrigendum identifier for CIE (/CorN notation). Wraps a nested base — a Standard, or a Supplement when the corrigendum applies to a supplement (CIE 198-SP1.4:2011/Cor1:2013). The "/CorN:year" is a clean trailing suffix on the base's rendering. Examples: CIE 232:2019/Cor1:2020, CIE 198-SP1.4:2011/Cor1:2013
Instance Method Summary collapse
-
#supplement_type ⇒ Object
Uniform supplement interface (shared with Supplement).
- #supplement_year ⇒ Object
- #to_s ⇒ Object
Methods inherited from SupplementIdentifier
#base_document, #drop_supplements, #supplement_number
Methods inherited from Pubid::Cie::Identifier
Methods inherited from Identifier
apply_mappings, #base, #base_document, concrete_class_for, #dated_version_of?, #draft_of?, #drop_supplements, #edition_of?, #eql?, #exclude, from_hash, #has_supplement?, #hash, #includes?, #initialize, #matches?, #mr_all_parts, #mr_edition, #mr_languages, #mr_number, #mr_number_with_part, #mr_part, #mr_publisher, #mr_subpart, #mr_supplement_suffix, #mr_type, #mr_year, #new_edition_of?, polymorphic_name, polymorphic_type_map, #related_to?, #render, #resolve_urn_generator, #root, #sibling_of?, #supplement_of?, #to_hash, #to_mr_string, #to_slug, #to_supplement_s, #to_urn, #urn_supplement_type, #urn_type_code, #year
Constructor Details
This class inherits a constructor from Pubid::Identifier
Instance Method Details
#supplement_type ⇒ Object
Uniform supplement interface (shared with Supplement).
20 21 22 |
# File 'lib/pubid/cie/identifiers/corrigendum.rb', line 20 def supplement_type :corrigendum end |
#supplement_year ⇒ Object
24 25 26 |
# File 'lib/pubid/cie/identifiers/corrigendum.rb', line 24 def supplement_year year end |
#to_s ⇒ Object
28 29 30 |
# File 'lib/pubid/cie/identifiers/corrigendum.rb', line 28 def to_s "#{base}/Cor#{number}:#{year}" end |