Class: Pubid::Renderers::IwaRenderer
- Inherits:
-
HumanReadable
- Object
- Base
- HumanReadable
- Pubid::Renderers::IwaRenderer
- Defined in:
- lib/pubid/renderers/iwa_renderer.rb
Constant Summary
Constants inherited from Base
Base::SEMANTIC_SPLIT, Base::TYPED_STAGE_CSS
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 14 15 16 17 |
# File 'lib/pubid/renderers/iwa_renderer.rb', line 6 def render(context:, with_edition: false) parts = [] if @id.typed_stage parts << annotate(@id.typed_stage.render(context:), typed_stage_css(@id.typed_stage), annotated: context.annotated) end parts << render_number_portion(context) result = parts.compact.join(" ") result << render_language_portion(context, with_edition: with_edition) result end |