Module: SimpleHdGraph::Renderer

Defined in:
lib/simple-hd-graph/renderer/plantuml.rb,
lib/simple-hd-graph/renderer/plantuml/context.rb,
lib/simple-hd-graph/renderer/plantuml/resource.rb

Defined Under Namespace

Modules: PlantUML

Class Method Summary collapse

Class Method Details

.plantuml(nodes) ⇒ Object

Parameters:

  • nodes (Array)


8
9
10
11
12
13
# File 'lib/simple-hd-graph/renderer/plantuml.rb', line 8

def plantuml(nodes)
  context = self::PlantUML::Context.new
  puts nodes.map { |node|
    context.render(node)
  }.join
end