class Parchment::ODT::TextRun

Public Class Methods

new(node, paragraph, document) click to toggle source
Calls superclass method Parchment::TextRun::new
# File lib/parchment/formats/odt/text_run.rb, line 5
def initialize(node, paragraph, document)
  @node = node
  if @node.attributes.empty?
    @style = paragraph.style
  else
    @style_id = @node.attributes['style-name'].value
    @style = document.get_style_by_id(@style_id)
  end
  super(paragraph, document)
end