Class: Pubid::Core::Corrigendum

Inherits:
Supplement show all
Defined in:
lib/pubid/core/corrigendum.rb

Instance Attribute Summary

Attributes inherited from Supplement

#number, #year

Instance Method Summary collapse

Methods inherited from Supplement

#<=>, #initialize, #render_pubid_number, #render_urn_number, #to_h

Constructor Details

This class inherits a constructor from Pubid::Core::Supplement

Instance Method Details

#render_pubidObject



4
5
6
7
8
# File 'lib/pubid/core/corrigendum.rb', line 4

def render_pubid
  stage = render_pubid_stage
  stage += " " unless stage.size == 0
  "/#{stage}Cor #{render_pubid_number}"
end

#render_urnObject



10
11
12
# File 'lib/pubid/core/corrigendum.rb', line 10

def render_urn
  "#{render_urn_stage}:cor#{render_urn_number}"
end