Class: Pubid::Ieee::Identifiers::Standard

Inherits:
Base show all
Defined in:
lib/pubid/ieee/identifiers/standard.rb

Overview

Standard identifier for IEEE standards

Represents published IEEE standards with the standard format: “IEEE Std XXX-YYYY”

Examples:

Standard IEEE identifier

std = Pubid::Ieee.parse("IEEE Std 802.3-2018")
std.code.to_s  # => "802.3"
std.year       # => "2018"

With co-publisher

std = Pubid::Ieee.parse("ANSI/IEEE Std 500-1984")
std.publisher        # => "IEEE"
std.copublisher     # => ["ANSI"]

Constant Summary collapse

TYPED_STAGES =

TYPED_STAGES for published IEEE standards Standards use “Std” abbreviation for published state

[
  Components::TypedStage.new(
    abbr: ["Std"],
    type_code: "standard",
    stage_code: "published",
  ),
].freeze

Instance Attribute Summary

Attributes inherited from Base

#code_obj, #draft_obj

Class Method Summary collapse

Methods inherited from Base

#code, #draft, #draft_month, #initialize, parse, parse_single, #publisher, #to_s

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_s, #to_supplement_s, #to_urn, #urn_supplement_type, #urn_type_code

Constructor Details

This class inherits a constructor from Pubid::Ieee::Identifiers::Base

Class Method Details

.typeObject



31
32
33
# File 'lib/pubid/ieee/identifiers/standard.rb', line 31

def self.type
  { key: :std, title: "Standard", short: "Std" }
end