Sha256: 87afc10221da51405fe9d18fd286926d11ecd8db934a1f0a22e725c316c72b0d

Contents?: true

Size: 522 Bytes

Versions: 1

Compression:

Stored size: 522 Bytes

Contents

# frozen_string_literal: true

module LiquidDiagrams
  module Renderers
    class BitfieldRenderer < BasicRenderer
      FLAGS = %w[
        compact
        hflip
        vflip
      ].freeze

      OPTIONS = %w[
        bits
        lanes
        hspace
        vspace
        fontsize
        fontfamily
        fontweight
      ].freeze

      def render
        Rendering.render_with_tempfile(build_command, @content) do |input, output|
          "--input #{input} > #{output}"
        end
      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/bitfield_renderer.rb