Class: Md2Pdf::Converter
- Inherits:
-
Struct
- Object
- Struct
- Md2Pdf::Converter
- Defined in:
- lib/md2pdf/converter.rb
Instance Attribute Summary collapse
-
#shell ⇒ Object
Returns the value of attribute shell.
-
#temp_filename_creator ⇒ Object
Returns the value of attribute temp_filename_creator.
-
#templater ⇒ Object
Returns the value of attribute templater.
Instance Method Summary collapse
Instance Attribute Details
#shell ⇒ Object
Returns the value of attribute shell
3 4 5 |
# File 'lib/md2pdf/converter.rb', line 3 def shell @shell end |
#temp_filename_creator ⇒ Object
Returns the value of attribute temp_filename_creator
3 4 5 |
# File 'lib/md2pdf/converter.rb', line 3 def temp_filename_creator @temp_filename_creator end |
#templater ⇒ Object
Returns the value of attribute templater
3 4 5 |
# File 'lib/md2pdf/converter.rb', line 3 def templater @templater end |
Instance Method Details
#convert(input_filename, output_filename) ⇒ Object
4 5 6 |
# File 'lib/md2pdf/converter.rb', line 4 def convert(input_filename, output_filename) templater.create_pdf_converter(shell, temp_filename_creator).convert(input_filename, output_filename) end |