Class: SimpleHdGraph::Renderer::PlantUML::Resource
- Inherits:
-
Object
- Object
- SimpleHdGraph::Renderer::PlantUML::Resource
- Defined in:
- lib/simple-hd-graph/renderer/plantuml/resource.rb
Instance Method Summary collapse
-
#render(node) ⇒ Object
:reek:UtilityFunction.
Instance Method Details
#render(node) ⇒ Object
:reek:UtilityFunction
9 10 11 12 13 14 15 16 17 18 |
# File 'lib/simple-hd-graph/renderer/plantuml/resource.rb', line 9 def render(node) content = node.content.map { |key, value| " #{key}: #{value}" }.join("\n") <<~EOD object "#{node.alias}" as #{node.id} { #{content} } EOD end |