Class: Powerpoint::Slide::Textual

Inherits:
Object
  • Object
show all
Includes:
Util
Defined in:
lib/powerpoint/slide/textual.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Util

#copy_media, #pixle_to_pt, #read_template, #render_view, #require_arguments

Constructor Details

#initialize(options = {}) ⇒ Textual

Returns a new instance of Textual.



11
12
13
14
# File 'lib/powerpoint/slide/textual.rb', line 11

def initialize(options={})
  require_arguments [:title, :content], options
  options.each {|k, v| instance_variable_set("@#{k}", v)}
end

Instance Attribute Details

#contentObject (readonly)

Returns the value of attribute content.



9
10
11
# File 'lib/powerpoint/slide/textual.rb', line 9

def content
  @content
end

#titleObject (readonly)

Returns the value of attribute title.



9
10
11
# File 'lib/powerpoint/slide/textual.rb', line 9

def title
  @title
end

Instance Method Details

#save(extract_path, index) ⇒ Object



16
17
18
19
# File 'lib/powerpoint/slide/textual.rb', line 16

def save(extract_path, index)
  save_rel_xml(extract_path, index)
  save_slide_xml(extract_path, index)
end