Class: Md2Pdf::Converter

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



3
4
5
# File 'lib/md2pdf/converter.rb', line 3

def shell
  @shell
end

#temp_filename_creatorObject

Returns the value of attribute temp_filename_creator

Returns:

  • (Object)

    the current value of temp_filename_creator



3
4
5
# File 'lib/md2pdf/converter.rb', line 3

def temp_filename_creator
  @temp_filename_creator
end

#templaterObject

Returns the value of attribute templater

Returns:

  • (Object)

    the current value of 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