Class: Pubid::Itu::Renderer::Contribution

Inherits:
Base
  • Object
show all
Defined in:
lib/pubid/itu/renderer/contribution.rb

Constant Summary

Constants inherited from Base

Base::TYPE_PREFIX

Instance Method Summary collapse

Methods inherited from Base

#render, #render_addendum, #render_amendment, #render_annex, #render_appendix, #render_base_identifier, #render_corrigendum, #render_date, #render_language, #render_part, #render_publisher, #render_range, #render_second_number, #render_subseries, #render_supplement, #render_type, #render_type_series

Instance Method Details

#render_identifier(params, _opts) ⇒ Object



3
4
5
# File 'lib/pubid/itu/renderer/contribution.rb', line 3

def render_identifier(params, _opts)
  ("%{series}-C%{number}" % params)
end

#render_number(number, _opts, params) ⇒ Object



11
12
13
# File 'lib/pubid/itu/renderer/contribution.rb', line 11

def render_number(number, _opts, params)
  number
end

#render_series(series, _opts, _params) ⇒ Object



7
8
9
# File 'lib/pubid/itu/renderer/contribution.rb', line 7

def render_series(series, _opts, _params)
  series
end