Class: Pubid::Itu::Identifiers::Corrigendum
- Inherits:
-
Supplement
- Object
- Lutaml::Model::Serializable
- Pubid::Identifier
- Pubid::Itu::Identifier
- Supplement
- Pubid::Itu::Identifiers::Corrigendum
- Defined in:
- lib/pubid/itu/identifiers/corrigendum.rb
Overview
Corrigendum identifier (Cor.)
Pattern: "ITU-T Z.100 (1999) Cor. 1 (10/2001)"
Can be corrigendum of annex: "ITU-T G.729 Annex E (1998) Cor. 1 (02/2000)"
A "Technical Corrigendum" — ITU's own spelling on 158 relaton-data-itu
records ("ITU-T H.222.0 (1995) Technical Cor. 1 (02/1998)"). It is a
distinct printed identifier from a plain "Cor. 1", so the qualifier is
preserved as a flag and rendered back rather than normalized away.
Named for the rarer form, so false is stripped from to_hash and no
existing serialized Corrigendum row gains a key.
Constant Summary
Constants inherited from Pubid::Itu::Identifier
Pubid::Itu::Identifier::LANGUAGES
Instance Method Summary collapse
-
#==(other) ⇒ Object
superalready enforces instance_of?(self.class), so this only has to add the qualifier — "Cor. - #to_s ⇒ Object
Methods inherited from Supplement
#mr_type, #render_supplement, #series_word_from_kv, #supplement_sector_to_kv, #supplement_series_to_kv, #supplement_series_word_to_kv
Methods inherited from Pubid::Itu::Identifier
#base_from_kv, #base_to_kv, #code_for, #common_text_twin_from_kv, #common_text_twin_to_kv, #date_for, #emit_kv, #exclude_from_nested, #imp_marker_from_kv, #imp_marker_to_kv, #initialize, #month_from_kv, #month_to_kv, #mr_number_with_part, #mr_publisher, #mr_type, normalize_to_s_opts, #number, #number_from_kv, #number_to_kv, parse, #parts_from_kv, #parts_to_kv, #qualifier_from_kv, #qualifier_glued_from_kv, #qualifier_glued_to_kv, #qualifier_to_kv, #render_base, #render_date_suffix, #render_language_suffix, #sector_from_kv, #sector_to_kv, #series_from_kv, #series_suffix_from_kv, #series_suffix_spaced_from_kv, #series_suffix_spaced_to_kv, #series_suffix_to_kv, #series_to_kv, #subseries_from_kv, #subseries_to_kv, #year_from_kv, #year_to_kv
Methods inherited from Pubid::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::Itu::Identifier
Instance Method Details
#==(other) ⇒ Object
super already enforces instance_of?(self.class), so this only has
to add the qualifier — "Cor. 1" and "Technical Cor. 1" of one base
are different documents.
29 30 31 |
# File 'lib/pubid/itu/identifiers/corrigendum.rb', line 29 def ==(other) super && technical == other.technical end |
#to_s ⇒ Object
22 23 24 |
# File 'lib/pubid/itu/identifiers/corrigendum.rb', line 22 def to_s render_supplement(technical ? "Technical Cor." : "Cor.") end |