Class: LiquidDiagrams::Renderers::WavedromRenderer
- Inherits:
-
BasicRenderer
- Object
- BasicRenderer
- LiquidDiagrams::Renderers::WavedromRenderer
- Defined in:
- lib/liquid_diagrams/renderers/wavedrom_renderer.rb
Constant Summary
Constants inherited from BasicRenderer
BasicRenderer::FLAGS, BasicRenderer::FLAGS_PREFIX, BasicRenderer::OPTIONS, BasicRenderer::OPTIONS_PREFIX, BasicRenderer::OPTIONS_SEPARATOR
Instance Method Summary collapse
Methods inherited from BasicRenderer
#arguments, #build_command, #initialize, render
Methods included from LiquidDiagrams::Rendering
render_with_command, render_with_stdin_stdout, render_with_tempfile
Constructor Details
This class inherits a constructor from LiquidDiagrams::BasicRenderer
Instance Method Details
#executable ⇒ Object
12 13 14 |
# File 'lib/liquid_diagrams/renderers/wavedrom_renderer.rb', line 12 def executable 'wavedrom-cli' end |
#render ⇒ Object
6 7 8 9 10 |
# File 'lib/liquid_diagrams/renderers/wavedrom_renderer.rb', line 6 def render Rendering.render_with_tempfile(build_command, @content) do |input, output| "--input #{input} --svg #{output}" end end |