Sha256: 01bfa4bc06c8c59618c6bd11adb163487e674221d6525513f6c5896f10616325
Contents?: true
Size: 523 Bytes
Versions: 3
Compression:
Stored size: 523 Bytes
Contents
# frozen_string_literal: true module LiquidDiagrams module Renderers class SvgbobRenderer < BasicRenderer OPTIONS = %w[ font-family font-size scale stroke-width ].freeze def render Rendering.render_with_stdin_stdout(build_command, @content) end def build_command command = +'svgbob' @config.slice(*OPTIONS).each do |opt, value| command << " --#{opt} #{value}" end command end end end end
Version data entries
3 entries across 3 versions & 1 rubygems