Sha256: c784ece7e2ed0fdac841a74b648961e76f01133c8e076fca8aff8072cf23d7a1

Contents?: true

Size: 355 Bytes

Versions: 1

Compression:

Stored size: 355 Bytes

Contents

# frozen_string_literal: true

module LiquidDiagrams
  module Renderers
    class WavedromRenderer < BasicRenderer
      def render
        Rendering.render_with_tempfile(build_command, @content) do |input, output|
          "--input #{input} --svg #{output}"
        end
      end

      def executable
        'wavedrom-cli'
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
liquid-diagrams-0.4.0 lib/liquid_diagrams/renderers/wavedrom_renderer.rb