Class: Asciidoctor::Diagram::NomnomlConverter
- Inherits:
-
Object
- Object
- Asciidoctor::Diagram::NomnomlConverter
- Includes:
- CliGenerator, DiagramConverter
- Defined in:
- lib/asciidoctor-diagram/nomnoml/converter.rb
Instance Method Summary collapse
Methods included from CliGenerator
#generate_file, #generate_file_stdout, #generate_stdin, #generate_stdin_file, #generate_stdin_stdout
Methods included from DiagramConverter
#collect_options, #native_scaling?, #wrap_source
Instance Method Details
#convert(source, format, options) ⇒ Object
18 19 20 21 22 23 24 25 |
# File 'lib/asciidoctor-diagram/nomnoml/converter.rb', line 18 def convert(source, format, ) generate_file(source.find_command('nomnoml'), 'nomnoml', format.to_s, source.to_s) do |tool_path, input_path, output_path| { :args => [tool_path, Platform.native_path(input_path), Platform.native_path(output_path)], :chdir => source.base_dir } end end |
#supported_formats ⇒ Object
13 14 15 |
# File 'lib/asciidoctor-diagram/nomnoml/converter.rb', line 13 def supported_formats [:svg] end |