Sha256: c8ed4b733c238386b4e4fe9262a6bf7e6aa2c7e78f37de8cd78db88f1d931be8
Contents?: true
Size: 501 Bytes
Versions: 1
Compression:
Stored size: 501 Bytes
Contents
# frozen_string_literal: true module LiquidDiagrams module Renderers class ErdRenderer < BasicRenderer FLAGS = %w[ dot-entity ].freeze OPTIONS = %w[ config edge ].freeze OPTIONS_SEPARATOR = '=' XML_REGEX = /^<\?xml(([^>]|\n)*>\n?){2}/.freeze def render Rendering.render_with_stdin_stdout(build_command, @content).sub(XML_REGEX, '') end def executable 'erd --fmt=svg' 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/erd_renderer.rb |