Class: Pubid::Core::Corrigendum
- Inherits:
-
Supplement
- Object
- Supplement
- Pubid::Core::Corrigendum
- Defined in:
- lib/pubid/core/corrigendum.rb
Instance Attribute Summary
Attributes inherited from Supplement
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_pubid ⇒ Object
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_urn ⇒ Object
10 11 12 |
# File 'lib/pubid/core/corrigendum.rb', line 10 def render_urn "#{render_urn_stage}:cor#{render_urn_number}" end |