Class: Pubid::Ieee::Identifiers::Nesc::Edition
- Inherits:
-
Base
- Object
- Lutaml::Model::Serializable
- Pubid::Identifier
- Pubid::Ieee::Identifier
- Base
- Pubid::Ieee::Identifiers::Nesc::Edition
- Includes:
- CodeNumber
- Defined in:
- lib/pubid/ieee/identifiers/nesc/edition.rb
Overview
A plain year-first NESC edition — the National Electrical Safety Code itself, referenced by publication year rather than by its C2 code.
Rendering is Nesc::Base's; this class exists so that the builder never
instantiates the abstract Base. Only concrete leaves may carry the
CodeNumber mixin's :string number (see the mixin's notes on the
multi-flavor attribute-resolution landmine), and every identifier that
can be a #root needs a non-empty number for the relaton index.
Instance Attribute Summary
Attributes inherited from Pubid::Ieee::Identifier
Class Method Summary collapse
Methods included from CodeNumber
#code_obj, included, #initialize, #rebuild_code_obj_from_split, #sync_split_from_code_obj
Methods inherited from Base
#draft?, #initialize, #name_portion, #publisher_portion, #to_s, #trademark_symbol
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_supplement_suffix, #mr_type, #mr_year, #new_edition_of?, 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
Class Method Details
.polymorphic_name ⇒ Object
25 26 27 |
# File 'lib/pubid/ieee/identifiers/nesc/edition.rb', line 25 def self.polymorphic_name "pubid:ieee:nesc-edition" end |