Class: Pubid::Iec::Renderer::TrfUrn
- Inherits:
-
Urn
- Object
- Core::Renderer::Urn
- Urn
- Pubid::Iec::Renderer::TrfUrn
show all
- Defined in:
- lib/pubid/iec/renderer/trf_urn.rb
Constant Summary
Constants inherited
from Urn
Urn::STAGES
Instance Method Summary
collapse
Methods inherited from Urn
#render_amendments, #render_conjuction_part, #render_corrigendums, #render_fragment, #render_language, #render_number, #render_part_version, #render_stage, #render_type, #render_vap, #render_version
Instance Method Details
#render_identifier(params) ⇒ Object
4
5
6
7
8
9
|
# File 'lib/pubid/iec/renderer/trf_urn.rb', line 4
def render_identifier(params)
"urn:iec:std:%{publisher}%{copublisher}:trf%{trf_publisher}:%{number}"\
"%{part}%{conjuction_part}%{year}%{vap}"\
"%{version}%{part_version}"\
"%{trf_version}" % params
end
|
#render_trf_publisher(trf_publisher, _opts, _params) ⇒ Object
15
16
17
|
# File 'lib/pubid/iec/renderer/trf_urn.rb', line 15
def render_trf_publisher(trf_publisher, _opts, _params)
":#{trf_publisher.downcase}"
end
|
#render_trf_version(trf_version, _opts, _params) ⇒ Object
11
12
13
|
# File 'lib/pubid/iec/renderer/trf_urn.rb', line 11
def render_trf_version(trf_version, _opts, _params)
":v#{trf_version}" unless trf_version.empty?
end
|