Class: Lutaml::Layout::GraphVizEngine
- Defined in:
- lib/lutaml/layout/graph_viz_engine.rb
Instance Attribute Summary
Attributes inherited from Engine
Instance Method Summary collapse
Methods inherited from Engine
Constructor Details
This class inherits a constructor from Lutaml::Layout::Engine
Instance Method Details
#render(type) ⇒ Object
10 11 12 13 14 15 16 17 |
# File 'lib/lutaml/layout/graph_viz_engine.rb', line 10 def render(type) Open3.popen3("dot -T#{type}") do |stdin, stdout, _stderr, _wait| stdout.binmode stdin.puts(input) stdin.close stdout.read end end |