Class: Md2Pdf::PandocConverter
- Inherits:
-
Struct
- Object
- Struct
- Md2Pdf::PandocConverter
- Defined in:
- lib/md2pdf/converter.rb
Instance Attribute Summary collapse
-
#shell ⇒ Object
Returns the value of attribute shell.
-
#template_path ⇒ Object
Returns the value of attribute template_path.
Instance Method Summary collapse
Instance Attribute Details
#shell ⇒ Object
Returns the value of attribute shell
10 11 12 |
# File 'lib/md2pdf/converter.rb', line 10 def shell @shell end |
#template_path ⇒ Object
Returns the value of attribute 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#{} #{input_filename} -o #{output_filename}") end |