Class: Pubid::Iec::Renderer::UrnSupplement

Inherits:
Core::Renderer::Urn
  • Object
show all
Defined in:
lib/pubid/iec/renderer/urn_supplement.rb

Direct Known Subclasses

UrnAmendment, UrnCorrigendum

Instance Method Summary collapse

Instance Method Details

#render_number(number, _opts, params) ⇒ Object



3
4
5
6
7
8
9
# File 'lib/pubid/iec/renderer/urn_supplement.rb', line 3

def render_number(number, _opts, params)
  if params[:year]
    ":v#{number}"
  else
    ":#{number}:v1"
  end
end