Class: PPTXMarkdown::Builders::PPTX

Inherits:
Struct
  • Object
show all
Defined in:
lib/pptx_markdown/builders/pptx.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#output_pathObject

Returns the value of attribute output_path

Returns:

  • (Object)

    the current value of output_path



5
6
7
# File 'lib/pptx_markdown/builders/pptx.rb', line 5

def output_path
  @output_path
end

#presentationObject

Returns the value of attribute presentation

Returns:

  • (Object)

    the current value of presentation



5
6
7
# File 'lib/pptx_markdown/builders/pptx.rb', line 5

def presentation
  @presentation
end

Instance Method Details

#callObject



6
7
8
9
10
11
12
13
14
15
16
# File 'lib/pptx_markdown/builders/pptx.rb', line 6

def call
  Dir.mktmpdir do |tmp_path|
    FileUtils.copy_entry template_path, tmp_path

    generate_slides(tmp_path)
    generate_presentation(tmp_path)
    generate_presentation_rels(tmp_path)

    create_pptx(tmp_path)
  end
end