Class: Pubid::Cie::Identifier

Inherits:
Identifier
  • Object
show all
Defined in:
lib/pubid/cie/identifier.rb

Overview

Base Identifier class for CIE.

Inherits the shared Pubid::Identifier contract (format_registry, render, to_urn, exclude, hash, eql?) while allowing CIE-specific attributes such as style (“legacy” vs “current” date separator).

Direct Known Subclasses

SingleIdentifier, SupplementIdentifier

Class Method Summary collapse

Methods inherited from 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, #year

Constructor Details

This class inherits a constructor from Pubid::Identifier

Class Method Details

.parse(input) ⇒ Object



13
14
15
16
17
# File 'lib/pubid/cie/identifier.rb', line 13

def self.parse(input)
  parsed = Parser.parse(input)
  builder = Builder.new
  builder.build(parsed, original_string: input)
end