class OoxmlParser::StringIndex
Class for parsing string index ‘si` tag
Attributes
run[R]
@return [ParagraphRun] run of text
text[R]
@return [String] text
Public Instance Methods
parse(node)
click to toggle source
Parse StringIndex
data @param [Nokogiri::XML:Element] node with StringIndex
data @return [StringIndex] value of StringIndex
data
# File lib/ooxml_parser/xlsx_parser/workbook/shared_string_table/string_index.rb, line 14 def parse(node) node.xpath('*').each do |node_child| case node_child.name when 't' @text = node_child.text when 'r' @run = ParagraphRun.new(parent: self).parse(node_child) end end self end