Sha256: ebb174ce03dc0d5d1c1f54d47c2135c9810be0b0cf453f1b9752255a4e7e5a92
Contents?: true
Size: 775 Bytes
Versions: 1
Compression:
Stored size: 775 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(index) save_rel_xml(index) save_slide_xml(index) end private def save_rel_xml index File.open("#{extract_path}/ppt/slides/_rels/slide#{index}.xml.rels", 'w'){ |f| f << render_view('textual_rel.xml.erb') } end def save_slide_xml index File.open("#{extract_path}/ppt/slides/slide#{index}.xml", 'w'){ |f| f << render_view('textual_slide.xml.erb') } end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
powerpoint-1.6 | lib/powerpoint/slide/textual.rb |