Class: RubyPoint::Slide::Rel
- Defined in:
- lib/rubypoint/slide/rel.rb
Instance Attribute Summary
Attributes inherited from File
Attributes inherited from Element
#objects, #parent, #presentation
Instance Method Summary collapse
-
#initialize(slide) ⇒ Rel
constructor
A new instance of Rel.
- #raw_xml ⇒ Object
Methods inherited from File
Methods inherited from Element
Constructor Details
#initialize(slide) ⇒ Rel
3 4 5 6 7 8 |
# File 'lib/rubypoint/slide/rel.rb', line 3 def initialize() @parent = @presenation = .presentation @file_path = @presenation. + "/_rels/slide#{@parent.slide_id}.xml.rels" @doc = Hpricot::XML(self.raw_xml) end |
Instance Method Details
#raw_xml ⇒ Object
10 11 12 13 14 15 |
# File 'lib/rubypoint/slide/rel.rb', line 10 def raw_xml raw = "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?>\n<Relationships xmlns=\"http://schemas.openxmlformats.org/package/2006/relationships\"><Relationship Id=\"rId1\" Type=\"http://schemas.openxmlformats.org/officeDocument/2006/relationships/slideLayout\" Target=\"../slideLayouts/slideLayout2.xml\"/></Relationships>\n" end |