class OoxmlParser::StringIndex
Class for parsing string index ‘si` tag
Attributes
@return [ParagraphRun] run of text
@return [String] text
Public Instance Methods
Source
# 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
Parse StringIndex
data @param [Nokogiri::XML:Element] node with StringIndex
data @return [StringIndex] value of StringIndex
data