Class: Pubid::Ieee::Identifiers::Corrigendum
- Inherits:
-
SupplementIdentifier
- Object
- Lutaml::Model::Serializable
- Pubid::Identifier
- Base
- SupplementIdentifier
- Pubid::Ieee::Identifiers::Corrigendum
- Defined in:
- lib/pubid/ieee/identifiers/corrigendum.rb
Overview
Corrigendum identifier for IEEE standards Represents corrections to published standards Example: IEEE Std 535-2013/Cor. 1-2017
Constant Summary collapse
- TYPED_STAGES =
TYPED_STAGES for corrigendum Corrigendum uses “Cor” abbreviation
[ Components::TypedStage.new( abbr: ["Cor"], type_code: "corrigendum", stage_code: "published", ), ].freeze
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
Methods inherited from SupplementIdentifier
Methods inherited from Base
#code, #draft, #draft_month, #initialize, parse, parse_single, #publisher
Methods inherited from Pubid::Identifier
#base_identifier, #eql?, #exclude, #hash, #initialize, #mr_number, #mr_number_with_part, #mr_part, #mr_publisher, #mr_type, #mr_year, #new_edition_of?, polymorphic_name, #render, #resolve_urn_generator, #root, #to_mr_string, #to_supplement_s, #to_urn, #urn_supplement_type, #urn_type_code
Constructor Details
This class inherits a constructor from Pubid::Ieee::Identifiers::Base
Instance Method Details
#to_s ⇒ Object
23 24 25 26 27 28 29 30 31 32 33 |
# File 'lib/pubid/ieee/identifiers/corrigendum.rb', line 23 def to_s return super unless base_identifier # Format: BASE/Cor NUMBER-YEAR or BASE/Cor. NUMBER-YEAR result = base_identifier.to_s result += "/Cor" result += ". " if cor_number # Add period and space for formal format result += cor_number if cor_number result += "-#{cor_year}" if cor_year result end |