class Asciidoctor::Diagram::UmletConverter
@private
Public Instance Methods
convert(source, format, options)
click to toggle source
# File lib/asciidoctor-diagram/umlet/converter.rb, line 17 def convert(source, format, options) generate_file(source.find_command('umlet'), 'uxf', format.to_s, source.to_s) do |tool_path, input_path, output_path| [tool_path, '-action=convert', "-format=#{format.to_s}", "-filename=#{Platform.native_path(input_path)}", "-output=#{Platform.native_path(output_path)}"] end end
supported_formats()
click to toggle source
# File lib/asciidoctor-diagram/umlet/converter.rb, line 13 def supported_formats [:svg, :png, :pdf, :gif] end