class Parchment::ODT::Paragraph
Public Class Methods
new(node, document)
click to toggle source
Calls superclass method
Parchment::Paragraph::new
# File lib/parchment/formats/odt/paragraph.rb, line 9 def initialize(node, document) @node = node @style_id = @node.attributes['style-name'].value @document = document @style = @document.get_style_by_id(@style_id) super() end
Private Instance Methods
set_text_runs()
click to toggle source
# File lib/parchment/formats/odt/paragraph.rb, line 19 def set_text_runs @text_runs = @node.children.map do |child| Parchment::ODT::TextRun.new(child, self, @document) end end