Class: SimpleHdGraph::Renderer::PlantUML::Resource

Inherits:
Object
  • Object
show all
Defined in:
lib/simple-hd-graph/renderer/plantuml/resource.rb

Instance Method Summary collapse

Instance Method Details

#render(node) ⇒ Object

:reek:UtilityFunction

Parameters:



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