class RubyPowerpoint::Paragraph
Public Class Methods
new(slide, paragraph_xml)
click to toggle source
# File lib/ruby_powerpoint/paragraph.rb, line 3 def initialize slide, paragraph_xml @slide = slide @presentation = slide.presentation @paragraph_xml = paragraph_xml end
Public Instance Methods
content()
click to toggle source
# File lib/ruby_powerpoint/paragraph.rb, line 9 def content content_element @paragraph_xml end
Private Instance Methods
content_element(xml)
click to toggle source
# File lib/ruby_powerpoint/paragraph.rb, line 15 def content_element(xml) xml.xpath('.//a:t').collect{ |node| node.text } end