Class: Pubid::Ccsds::Renderer::Base

Inherits:
Pubid::Core::Renderer::Base
  • Object
show all
Defined in:
lib/pubid/ccsds/renderer/base.rb

Direct Known Subclasses

Corrigendum

Constant Summary collapse

TYPE =
"".freeze

Instance Method Summary collapse

Instance Method Details

#render_book_color(book_color, _opts, _params) ⇒ Object



13
14
15
# File 'lib/pubid/ccsds/renderer/base.rb', line 13

def render_book_color(book_color, _opts, _params)
  "-#{book_color}"
end

#render_edition(edition, _opts, _params) ⇒ Object



17
18
19
# File 'lib/pubid/ccsds/renderer/base.rb', line 17

def render_edition(edition, _opts, _params)
  "-#{edition}"
end

#render_identifier(params) ⇒ Object



5
6
7
# File 'lib/pubid/ccsds/renderer/base.rb', line 5

def render_identifier(params)
  "%{publisher} %{series}%{number}%{part}%{book_color}%{edition}%{retired}" % params
end

#render_language(language, opts, _params) ⇒ Object



25
26
27
# File 'lib/pubid/ccsds/renderer/base.rb', line 25

def render_language(language, opts, _params)
  " - #{language} Translated"
end

#render_part(part, _opts, _params) ⇒ Object



9
10
11
# File 'lib/pubid/ccsds/renderer/base.rb', line 9

def render_part(part, _opts, _params)
  ".#{part}"
end

#render_retired(retired, _opts, _params) ⇒ Object



21
22
23
# File 'lib/pubid/ccsds/renderer/base.rb', line 21

def render_retired(retired, _opts, _params)
  "-S" if retired
end