Class: PPTXMarkdown::Parsers::PPTX

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

Constant Summary collapse

CONTENT_PATH =
'p:txBody/a:p/a:r/a:t'.freeze
TYPE_PATH =
'p:nvSpPr/p:nvPr/p:ph'.freeze

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#pathObject

Returns the value of attribute path

Returns:

  • (Object)

    the current value of path



3
4
5
# File 'lib/pptx_markdown/parsers/pptx.rb', line 3

def path
  @path
end

Instance Method Details

#callObject



11
12
13
# File 'lib/pptx_markdown/parsers/pptx.rb', line 11

def call
  PPTXMarkdown::Presentation.new(slides)
end

#documentObject



7
8
9
# File 'lib/pptx_markdown/parsers/pptx.rb', line 7

def document
  @document ||= Zip::File.open(path)
end