class Asciidoctor::Diagram::SymbolatorConverter
@private
Public Instance Methods
convert(source, format, options)
click to toggle source
# File lib/asciidoctor-diagram/symbolator/converter.rb, line 16 def convert(source, format, options) generate_stdin(source.find_command('symbolator'), format.to_s, source.to_s) do |tool_path, output_path| [tool_path, "-i-", "-o#{Platform.native_path(output_path)}", "-f#{format.to_s}"] end end
supported_formats()
click to toggle source
# File lib/asciidoctor-diagram/symbolator/converter.rb, line 12 def supported_formats [:png, :pdf, :svg] end