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

Inherits:
Base
  • Object
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

Class Method Summary collapse

Class Method Details

.typeObject



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

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