class OoxmlParser::TextOutline
Class for parsing ‘w:textOutline`
Attributes
color_scheme[RW]
width[RW]
Public Class Methods
new(parent: nil)
click to toggle source
Calls superclass method
OoxmlParser::OOXMLDocumentObject::new
# File lib/ooxml_parser/docx_parser/document_structure/docx_paragraph/docx_paragraph_run/text_outline.rb, line 9 def initialize(parent: nil) @width = OoxmlSize.new(0) @color_scheme = :none super end
Public Instance Methods
parse(node)
click to toggle source
Parse TextOutline
object @param node [Nokogiri::XML:Element] node to parse @return [TextOutline] result of parsing
# File lib/ooxml_parser/docx_parser/document_structure/docx_paragraph/docx_paragraph_run/text_outline.rb, line 18 def parse(node) node.attributes.each do |key, value| case key when 'w' @width = OoxmlSize.new(value.value.to_f, :emu) end end @color_scheme = DocxColorScheme.new(parent: self).parse(node) self end