class Lutaml::Layout::GraphVizEngine
Public Instance Methods
render(type)
click to toggle source
# File lib/lutaml/layout/graph_viz_engine.rb, line 9 def render(type) Open3.popen3("dot -T#{type}") do |stdin, stdout, _stderr, _wait| stdin.puts(input) stdin.close # unless (err = stderr.read).empty? then raise err end stdout.read end end