Class: Pubid::Ieee::Identifiers::ParentheticalIdentifier
- Inherits:
-
Base
- Object
- Lutaml::Model::Serializable
- Pubid::Identifier
- Base
- Pubid::Ieee::Identifiers::ParentheticalIdentifier
- Defined in:
- lib/pubid/ieee/identifiers/parenthetical_identifier.rb
Overview
Parenthetical Identifier - wraps identifier with parenthetical annotation Example: “IEEE Standard No 18-1968 (ANSI C55.1-1968)”
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
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
12 13 14 15 16 |
# File 'lib/pubid/ieee/identifiers/parenthetical_identifier.rb', line 12 def to_s result = base_identifier.to_s result += " (#{parenthetical_identifier})" if parenthetical_identifier result end |