Class: Pubid::Omg::Renderer

Inherits:
Renderers::Base show all
Defined in:
lib/pubid/omg/renderer.rb

Overview

Human-readable renderer for OMG specification identifiers.

Produces:

"OMG AMI4CCM 1.0"
"OMG UML 2.5.1"
"OMG CORBA"

Constant Summary

Constants inherited from Renderers::Base

Renderers::Base::SEMANTIC_SPLIT, Renderers::Base::TYPED_STAGE_CSS

Instance Method Summary collapse

Methods inherited from Renderers::Base

#initialize, render

Constructor Details

This class inherits a constructor from Pubid::Renderers::Base

Instance Method Details

#render(**_opts) ⇒ Object



12
13
14
15
16
# File 'lib/pubid/omg/renderer.rb', line 12

def render(**_opts)
  result = "OMG #{@id.acronym}"
  result += " #{@id.version}" if @id.version && !@id.version.empty?
  result
end