Class: RubyPoint::App::Slide

Inherits:
Element
  • Object
show all
Defined in:
lib/rubypoint/docProps/app.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.



33
34
35
# File 'lib/rubypoint/docProps/app.rb', line 33

def initialize(slide)
  @slide = slide
end

Instance Attribute Details

#slideObject

Returns the value of attribute slide.



31
32
33
# File 'lib/rubypoint/docProps/app.rb', line 31

def slide
  @slide
end

Instance Method Details

#rawObject



42
43
44
# File 'lib/rubypoint/docProps/app.rb', line 42

def raw
  %Q{<vt:lpstr>Slide #{slide.slide_id}</vt:lpstr>}
end

#writeObject



37
38
39
40
# File 'lib/rubypoint/docProps/app.rb', line 37

def write
  # TODO need a freaking better search that this!!!
  @parent.doc.search("//vt:vector[@baseType='lpstr']").html += self.raw
end