Class: Pubid::Renderers::IwaRenderer
- Inherits:
-
HumanReadable
- Object
- Base
- HumanReadable
- Pubid::Renderers::IwaRenderer
- Defined in:
- lib/pubid/renderers/iwa_renderer.rb
Instance Method Summary collapse
Methods inherited from Base
Constructor Details
This class inherits a constructor from Pubid::Renderers::Base
Instance Method Details
#render(context:, with_edition: false) ⇒ Object
6 7 8 9 10 11 12 13 |
# File 'lib/pubid/renderers/iwa_renderer.rb', line 6 def render(context:, with_edition: false) parts = [] parts << @id.typed_stage.render(context:) if @id.typed_stage parts << render_number_portion(context) result = parts.compact.join(" ") result << render_language_portion(context, with_edition: with_edition) result end |