class RubySlides::Slide::Textual

Attributes

content[R]
title[R]

Public Class Methods

new(options={}) click to toggle source
# File lib/ruby_slides/slide/textual.rb, line 11
def initialize(options={})
  require_arguments [:title, :content], options
  options.each {|k, v| instance_variable_set("@#{k}", v)}
end

Public Instance Methods

save(extract_path, index) click to toggle source
# File lib/ruby_slides/slide/textual.rb, line 16
def save(extract_path, index)
  save_rel_xml(extract_path, index)
  save_slide_xml(extract_path, index)
end

Private Instance Methods

save_rel_xml(extract_path, index) click to toggle source
# File lib/ruby_slides/slide/textual.rb, line 21
def save_rel_xml(extract_path, index)
  render_view('textual_rel.xml.erb', "#{extract_path}/ppt/slides/_rels/slide#{index}.xml.rels", index: 2)
end
save_slide_xml(extract_path, index) click to toggle source
# File lib/ruby_slides/slide/textual.rb, line 26
def save_slide_xml(extract_path, index)
  render_view('textual_slide.xml.erb', "#{extract_path}/ppt/slides/slide#{index}.xml")
end