Class: LiquidDiagrams::Renderers::BitfieldRenderer

Inherits:
BasicRenderer
  • Object
show all
Defined in:
lib/liquid_diagrams/renderers/bitfield_renderer.rb

Constant Summary collapse

FLAGS =
%w[
  compact
  hflip
  vflip
].freeze
OPTIONS =
%w[
  bits
  lanes
  hspace
  vspace
  fontsize
  fontfamily
  fontweight
].freeze

Constants inherited from BasicRenderer

BasicRenderer::FLAGS_PREFIX, BasicRenderer::OPTIONS_PREFIX, BasicRenderer::OPTIONS_SEPARATOR

Instance Method Summary collapse

Methods inherited from BasicRenderer

#arguments, #build_command, #executable, #initialize, render

Methods included from LiquidDiagrams::Rendering

render_with_command, render_with_stdin_stdout, render_with_tempfile

Constructor Details

This class inherits a constructor from LiquidDiagrams::BasicRenderer

Instance Method Details

#renderObject



22
23
24
25
26
# File 'lib/liquid_diagrams/renderers/bitfield_renderer.rb', line 22

def render
  Rendering.render_with_tempfile(build_command, @content) do |input, output|
    "--input #{input} > #{output}"
  end
end