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