Class: Md2Pdf::PandocConverter

Inherits:
Struct
  • Object
show all
Defined in:
lib/md2pdf/converter.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#shellObject

Returns the value of attribute shell

Returns:

  • (Object)

    the current value of shell



10
11
12
# File 'lib/md2pdf/converter.rb', line 10

def shell
  @shell
end

#template_pathObject

Returns the value of attribute template_path

Returns:

  • (Object)

    the current value of template_path



10
11
12
# File 'lib/md2pdf/converter.rb', line 10

def template_path
  @template_path
end

Instance Method Details

#convert(input_filename, output_filename) ⇒ Object



11
12
13
# File 'lib/md2pdf/converter.rb', line 11

def convert(input_filename, output_filename)
  shell.exec("pandoc#{options} #{input_filename} -o #{output_filename}")
end