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::Engine
Instance Method Details
#render(type) ⇒ Object
9 10 11 12 13 14 15 16 |
# File 'lib/lutaml/layout/graph_viz_engine.rb', line 9 def render(type) Open3.popen3("dot -T#{type}") do |stdin, stdout, _stderr, _wait| stdout.binmode stdin.puts(input) stdin.close stdout.read end end |