Class: Pubid::Ieee::Identifiers::RedlinedStandard
- Inherits:
-
Base
- Object
- Lutaml::Model::Serializable
- Pubid::Identifier
- Base
- Pubid::Ieee::Identifiers::RedlinedStandard
- Defined in:
- lib/pubid/ieee/identifiers/redlined_standard.rb
Overview
Redlined Standard Identifier IEEE standard with optional revision note, marked as redline Example: “IEEE Std 1018-2013 (Revison of IEEE Std 1018-2004) - Redline” Contains: base standard + optional revision standard + redline flag
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
Methods inherited from Base
#code, #draft, #draft_month, #initialize, parse, parse_single
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
#publisher ⇒ Object
27 28 29 |
# File 'lib/pubid/ieee/identifiers/redlined_standard.rb', line 27 def publisher base_identifier&.publisher || "IEEE" end |
#to_s ⇒ Object
20 21 22 23 24 25 |
# File 'lib/pubid/ieee/identifiers/redlined_standard.rb', line 20 def to_s result = base_identifier.to_s result += " (Revision of #{revision_of})" if revision_of result += " - Redline" if redline result end |