Sha256: a41178e51e004a9adc091c1f050f1b0310a968b52c099d238098b65f7ec04f27
Contents?: true
Size: 871 Bytes
Versions: 2
Compression:
Stored size: 871 Bytes
Contents
# Properties of XLSX comment Character (Run) module OoxmlParser class ExcelCommentCharacterProperties < OOXMLDocumentObject attr_accessor :size, :color, :font def initialize(size = '', color = nil, font = '') @size = size @color = color @font = font end def self.parse(properties_node) character_properties = ExcelCommentCharacterProperties.new properties_node.xpath('*').each do |properties_node_child| case properties_node_child.name when 'sz' character_properties.size = properties_node_child.attribute('val').value when 'color' character_properties.color = Color.parse_color_tag(properties_node_child) when 'rFont' character_properties.font = properties_node_child.attribute('val').value end end character_properties end end end
Version data entries
2 entries across 2 versions & 1 rubygems