class Asciidoctor::Diagram::BytefieldConverter

@private

Public Instance Methods

convert(source, format, options) click to toggle source
# File lib/asciidoctor-diagram/bytefield/converter.rb, line 17
def convert(source, format, options)
  bytefield_path = source.find_command('bytefield-svg')

  generate_stdin(bytefield_path, format.to_s, source.to_s) do |tool_path, output_path|
    [tool_path, "--output", Platform.native_path(output_path)]
  end
end
supported_formats() click to toggle source
# File lib/asciidoctor-diagram/bytefield/converter.rb, line 13
def supported_formats
  [:svg]
end