Class: Pubid::Iec::Renderer::InterpretationSheet

Inherits:
Pubid
  • Object
show all
Defined in:
lib/pubid/iec/renderer/interpretation_sheet.rb

Instance Method Summary collapse

Methods inherited from Pubid

#render_amendments, #render_conjuction_part, #render_corrigendums, #render_database, #render_day, #render_edition, #render_fragment, #render_language, #render_month, #render_sheet, #render_type, #render_typed_stage, #render_vap, #render_version, #supplement_prefix

Instance Method Details

#render_identifier(params) ⇒ Object



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

def render_identifier(params)
  type_prefix = params[:stage].nil? || params[:stage].to_s.empty? ? "ISH" : ""

  "%{base}/%{stage}#{type_prefix}%{number}%{year}" % params
end

#render_stage(stage, _opts, _params) ⇒ Object



9
10
11
# File 'lib/pubid/iec/renderer/interpretation_sheet.rb', line 9

def render_stage(stage, _opts, _params)
  stage
end

#render_year(year, _opts, _params) ⇒ Object



13
14
15
# File 'lib/pubid/iec/renderer/interpretation_sheet.rb', line 13

def render_year(year, _opts, _params)
  ":#{year}"
end