Class: Trace2::DotWrapper
- Inherits:
-
Object
- Object
- Trace2::DotWrapper
- Defined in:
- lib/trace2/dot_wrapper.rb
Overview
A class to abstract the usage of the dot executable that comes with graphviz
Instance Method Summary collapse
-
#initialize(kernel: Kernel) ⇒ DotWrapper
constructor
A new instance of DotWrapper.
- #render_graph(input_path, output_path, format) ⇒ Object
Constructor Details
#initialize(kernel: Kernel) ⇒ DotWrapper
Returns a new instance of DotWrapper.
7 8 9 |
# File 'lib/trace2/dot_wrapper.rb', line 7 def initialize(kernel: Kernel) @kernel = kernel end |
Instance Method Details
#render_graph(input_path, output_path, format) ⇒ Object
11 12 13 14 15 |
# File 'lib/trace2/dot_wrapper.rb', line 11 def render_graph(input_path, output_path, format) return warn_graphviz_not_installed unless graphviz_installed? execute_graph_render(input_path, output_path, format) end |