Class: Pubid::Jis::Identifiers::Explanation

Inherits:
SupplementIdentifier show all
Defined in:
lib/pubid/jis/identifiers/explanation.rb

Overview

Explanation identifier type Format: base/EXPL[ number] Examples:

JIS K 2151:2004/EXPL
JIS K 2249-4:2011/EXPL 4

Instance Method Summary collapse

Methods inherited from SupplementIdentifier

#==, #code, #initialize, #to_s

Methods inherited from Base

#==, #all_parts?, #code, #initialize, #publisher, #to_s

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

Constructor Details

This class inherits a constructor from Pubid::Jis::SupplementIdentifier

Instance Method Details

#supplement_notationObject



12
13
14
15
16
17
18
# File 'lib/pubid/jis/identifiers/explanation.rb', line 12

def supplement_notation
  if number
    "EXPL #{number}"
  else
    "EXPL"
  end
end