Class: RubyPoint::ContentTypes::XML::Slide
- Defined in:
- lib/rubypoint/content_types_xml.rb
Instance Attribute Summary collapse
-
#slide ⇒ Object
Returns the value of attribute slide.
Attributes inherited from Element
#objects, #parent, #presentation
Instance Method Summary collapse
-
#initialize(slide) ⇒ Slide
constructor
A new instance of Slide.
- #raw ⇒ Object
- #write ⇒ Object
Methods inherited from Element
Constructor Details
#initialize(slide) ⇒ Slide
Returns a new instance of Slide.
34 35 36 |
# File 'lib/rubypoint/content_types_xml.rb', line 34 def initialize() @slide = end |
Instance Attribute Details
#slide ⇒ Object
Returns the value of attribute slide.
32 33 34 |
# File 'lib/rubypoint/content_types_xml.rb', line 32 def @slide end |
Instance Method Details
#raw ⇒ Object
43 44 45 |
# File 'lib/rubypoint/content_types_xml.rb', line 43 def raw %Q{<Override PartName="/ppt/slides/slide#{.}.xml" ContentType="application/vnd.openxmlformats-officedocument.presentationml.slide+xml"/>} end |
#write ⇒ Object
38 39 40 41 |
# File 'lib/rubypoint/content_types_xml.rb', line 38 def write # TODO need a freaking better search that this!!! @parent.doc.search("//Types").html += self.raw end |