Class: RubyPowerpoint::Paragraph

Inherits:
Object
  • Object
show all
Defined in:
lib/ruby_powerpoint/paragraph.rb

Instance Method Summary collapse

Constructor Details

#initialize(slide, paragraph_xml) ⇒ Paragraph

Returns a new instance of Paragraph.



3
4
5
6
7
# File 'lib/ruby_powerpoint/paragraph.rb', line 3

def initialize slide, paragraph_xml
  @slide = slide
  @presentation = slide.presentation
  @paragraph_xml = paragraph_xml
end

Instance Method Details

#contentObject



9
10
11
# File 'lib/ruby_powerpoint/paragraph.rb', line 9

def content
  content_element @paragraph_xml
end