Class: PPTXMarkdown::Builders::Markdown

Inherits:
Struct
  • Object
show all
Defined in:
lib/pptx_markdown/builders/markdown.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



3
4
5
# File 'lib/pptx_markdown/builders/markdown.rb', line 3

def output_path
  @output_path
end

#presentationObject

Returns the value of attribute presentation

Returns:

  • (Object)

    the current value of presentation



3
4
5
# File 'lib/pptx_markdown/builders/markdown.rb', line 3

def presentation
  @presentation
end

Instance Method Details

#callObject



4
5
6
# File 'lib/pptx_markdown/builders/markdown.rb', line 4

def call
  File.open(output_path, 'w') { |f| f.write(presentation.to_markdown) }
end