Class: Ea::Svg::EaEmitter::Element::HeaderLineProvider::ParentGhost
- Inherits:
-
Object
- Object
- Ea::Svg::EaEmitter::Element::HeaderLineProvider::ParentGhost
- Defined in:
- lib/ea/svg/ea_emitter/element/header_line_provider/parent_ghost.rb
Overview
Emits the off-canvas parent classifier name as the first italic line. EA renders this when HideParents=0 and the classifier's generalization parent is not placed on the diagram.
Class Method Summary collapse
Class Method Details
.call(context) ⇒ Object
14 15 16 17 18 19 |
# File 'lib/ea/svg/ea_emitter/element/header_line_provider/parent_ghost.rb', line 14 def self.call(context) name = context.off_canvas_parent_name return [] unless name [[name, :italic]] end |