Sha256: 2b510c8dce1338b3c2e1b2b2d21c24aa6c51c2b98c085dcfb317d3fc10c6078d
Contents?: true
Size: 462 Bytes
Versions: 1
Compression:
Stored size: 462 Bytes
Contents
# frozen_string_literal: true module LiquidDiagrams module Renderers class VegaRenderer < BasicRenderer OPTIONS = %w[ scale ].freeze def render Rendering.render_with_stdin_stdout(build_command, @content) end def build_command command = +'vg2svg' @config.slice(*OPTIONS).each do |opt, value| command << " --#{opt} #{value}" end command end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
liquid-diagrams-0.1.0 | lib/liquid_diagrams/renderers/vega_renderer.rb |