Module: Pubid::Rendering::Supplement
- Included in:
- Base
- Defined in:
- lib/pubid/rendering/supplement.rb
Instance Method Summary collapse
-
#render_supplements(base_identifier, supplements, **options) ⇒ String
Render supplement identifiers (amendment, corrigendum, addendum, etc.).
Instance Method Details
#render_supplements(base_identifier, supplements, **options) ⇒ String
Render supplement identifiers (amendment, corrigendum, addendum, etc.)
11 12 13 14 15 16 17 18 19 20 21 |
# File 'lib/pubid/rendering/supplement.rb', line 11 def render_supplements(base_identifier, supplements, **) return base_identifier.to_s(**) unless supplements&.any? result = base_identifier.to_s(**) supplements.each do |supp| result += render_single_supplement(supp, **) end result end |