Class: RubyPoint::Presentation::Presentation::Slide

Inherits:
Element
  • Object
show all
Defined in:
lib/rubypoint/ppt/presentation.rb

Instance Attribute Summary collapse

Attributes inherited from Element

#objects, #parent, #presentation

Instance Method Summary collapse

Methods inherited from Element

class_attributes

Constructor Details

#initialize(slide) ⇒ Slide

Returns a new instance of Slide.



29
30
31
# File 'lib/rubypoint/ppt/presentation.rb', line 29

def initialize(slide)
  @slide = slide
end

Instance Attribute Details

#slideObject

Returns the value of attribute slide.



27
28
29
# File 'lib/rubypoint/ppt/presentation.rb', line 27

def slide
  @slide
end

Instance Method Details

#rawObject



37
38
39
# File 'lib/rubypoint/ppt/presentation.rb', line 37

def raw
  %Q{<p:sldId id="#{255+slide.slide_id}" r:id="rId#{slide.rel_id.rel_id}"/>}
end

#writeObject



33
34
35
# File 'lib/rubypoint/ppt/presentation.rb', line 33

def write
  @parent.doc.search('//p:sldIdLst').html += self.raw
end