Class: Pubid::Core::Amendment
- Inherits:
-
Supplement
- Object
- Supplement
- Pubid::Core::Amendment
- Defined in:
- lib/pubid/core/amendment.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/amendment.rb', line 4 def render_pubid stage = render_pubid_stage stage += " " unless stage.size == 0 "/#{stage}Amd #{render_pubid_number}" end |
#render_urn ⇒ Object
10 11 12 |
# File 'lib/pubid/core/amendment.rb', line 10 def render_urn "#{render_urn_stage}:amd#{render_urn_number}" end |