class Xlsxrb::Ooxml::Reader::CellStyleListener
SAX2 listener that captures cell style index (s attribute) from worksheet.
Attributes
Public Class Methods
Source
# File lib/xlsxrb/ooxml/reader.rb, line 3100 def initialize @cell_style_indices = {} end
Public Instance Methods
# File lib/xlsxrb/ooxml/reader.rb, line 3104 def start_element(_uri, local_name, qname, attributes) name = element_name(local_name, qname) return unless name == "c" ref = attributes["r"] s = attributes["s"] @cell_style_indices[ref] = s.to_i if ref && s end