Class: Powerpoint::Slide::Intro
- Inherits:
-
Object
- Object
- Powerpoint::Slide::Intro
- Includes:
- Util
- Defined in:
- lib/powerpoint/slide/intro.rb
Instance Attribute Summary collapse
-
#subtitile ⇒ Object
readonly
Returns the value of attribute subtitile.
-
#title ⇒ Object
readonly
Returns the value of attribute title.
Instance Method Summary collapse
- #file_type ⇒ Object
-
#initialize(options = {}) ⇒ Intro
constructor
A new instance of Intro.
- #save(extract_path, index) ⇒ Object
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(={}) require_arguments [:title, :subtitile], .each {|k, v| instance_variable_set("@#{k}", v)} end |
Instance Attribute Details
#subtitile ⇒ Object (readonly)
Returns the value of attribute subtitile.
9 10 11 |
# File 'lib/powerpoint/slide/intro.rb', line 9 def subtitile @subtitile end |
#title ⇒ Object (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_type ⇒ Object
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) (extract_path, index) end |