Class: Powerpoint::Slide::Intro

Inherits:
Object
  • Object
show all
Includes:
Util
Defined in:
lib/powerpoint/slide/intro.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 = {}) ⇒ Intro

Returns a new instance of Intro.



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

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

Instance Attribute Details

#subtitileObject (readonly)

Returns the value of attribute subtitile.



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

def subtitile
  @subtitile
end

#titleObject (readonly)

Returns the value of attribute title.



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

def title
  @title
end

Instance Method Details

#file_typeObject



21
22
23
# File 'lib/powerpoint/slide/intro.rb', line 21

def file_type
  nil
end

#save(extract_path, index) ⇒ Object



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

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