Class: Pubid::Ieee::Identifiers::Amendment
- Inherits:
-
SupplementIdentifier
- Object
- Lutaml::Model::Serializable
- Pubid::Identifier
- Pubid::Ieee::Identifier
- SupplementIdentifier
- Pubid::Ieee::Identifiers::Amendment
- Defined in:
- lib/pubid/ieee/identifiers/amendment.rb
Overview
Amendment identifier for IEEE standards Represents additions/changes to a published standard Example: IEEE Std 802.3-2018/Amd 4-2020
Constant Summary collapse
- TYPED_STAGES =
TYPED_STAGES for amendment Amendment uses "Amd" abbreviation
[ Components::TypedStage.new( abbr: ["Amd"], type_code: "amendment", stage_code: "published", ), ].freeze
Instance Attribute Summary
Attributes inherited from Pubid::Ieee::Identifier
Instance Method Summary collapse
-
#mr_supplement_suffix ⇒ Object
MR supplement suffix:
amd.{number}.{year}(e.g. "/amd.4.2020").
Methods inherited from SupplementIdentifier
Methods inherited from Pubid::Ieee::Identifier
additional_identifier_classes, #code, #draft, #draft_month, #exclude, from_hash, #initialize, #mr_number_with_part, #mr_publisher, #mr_type, #mr_year, parse, parse_single, #publisher, #to_hash
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_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_s, #to_slug, #to_supplement_s, #to_urn, #urn_supplement_type, #urn_type_code, #year
Constructor Details
This class inherits a constructor from Pubid::Ieee::Identifier
Instance Method Details
#mr_supplement_suffix ⇒ Object
MR supplement suffix: amd.{number}.{year} (e.g. "/amd.4.2020").
The MrString renderer recurses into base and appends this so the
full IEEE amendment round-trips losslessly (mirrors Corrigendum).
31 32 33 34 35 36 |
# File 'lib/pubid/ieee/identifiers/amendment.rb', line 31 def mr_supplement_suffix segments = ["amd"] segments << number.to_s if number segments << year.to_s if year segments.join(".") end |