class Xlsxrb::Ooxml::Reader::CellStyleListener
SAX2 listener that captures cell style index (s attribute) from worksheet.
Attributes
cell_style_indices
[R]
untyped
Public Class Methods
() → untyped
Source
# File lib/xlsxrb/ooxml/reader/listeners/style_listeners.rb, line 371 def initialize @cell_style_indices = {} end
Public Instance Methods
(untyped _uri, untyped local_name, untyped qname, untyped attributes) → untyped
Source
# File lib/xlsxrb/ooxml/reader/listeners/style_listeners.rb, line 375 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