Sha256: 67796bcd1d35d287cbea36701f99253987fe5f389cc08467576e8eec863c9c7f

Contents?: true

Size: 358 Bytes

Versions: 3

Compression:

Stored size: 358 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 build_command
        'wavedrom-cli'
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
liquid-diagrams-0.3.0 lib/liquid_diagrams/renderers/wavedrom_renderer.rb
liquid-diagrams-0.2.0 lib/liquid_diagrams/renderers/wavedrom_renderer.rb
liquid-diagrams-0.1.0 lib/liquid_diagrams/renderers/wavedrom_renderer.rb