Sha256: 3ee0a8c735d0114d25bf95843ecf0cfcc310335e7149e33b8fd44832a3c4a991
Contents?: true
Size: 837 Bytes
Versions: 2
Compression:
Stored size: 837 Bytes
Contents
require 'fileutils' require 'erb' module Powerpoint module Slide class Textual include Powerpoint::Util attr_reader :title, :content def initialize(options={}) require_arguments [:title, :content], options options.each {|k, v| instance_variable_set("@#{k}", v)} end def save(extract_path, index) save_rel_xml(extract_path, index) save_slide_xml(extract_path, index) end def save_rel_xml(extract_path, index) render_view('textual_rel.xml.erb', "#{extract_path}/ppt/slides/_rels/slide#{index}.xml.rels") end private :save_rel_xml def save_slide_xml(extract_path, index) render_view('textual_slide.xml.erb', "#{extract_path}/ppt/slides/slide#{index}.xml") end private :save_slide_xml end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
powerpoint-1.8 | lib/powerpoint/slide/textual.rb |
powerpoint-1.7 | lib/powerpoint/slide/textual.rb |