Sha256: 3e8a451c544a1bddd60deb4e6fca60219c1dd695788a8a13128e24403b939e72

Contents?: true

Size: 338 Bytes

Versions: 3

Compression:

Stored size: 338 Bytes

Contents

# frozen_string_literal: true

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

      def build_command
        'nomnoml'
      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/nomnoml_renderer.rb
liquid-diagrams-0.2.0 lib/liquid_diagrams/renderers/nomnoml_renderer.rb
liquid-diagrams-0.1.0 lib/liquid_diagrams/renderers/nomnoml_renderer.rb