class Asciidoctor::Diagram::ShaapeConverter
@private
Public Instance Methods
convert(source, format, options)
click to toggle source
# File lib/asciidoctor-diagram/shaape/converter.rb, line 18 def convert(source, format, options) generate_stdin(source.find_command('shaape'), format.to_s, source.to_s) do |tool_path, output_path| { :args => [tool_path, '-o', Platform.native_path(output_path), '-t', format.to_s, '-'], :chdir => source.base_dir } end end
supported_formats()
click to toggle source
# File lib/asciidoctor-diagram/shaape/converter.rb, line 13 def supported_formats [:png, :svg] end