Sha256: 95bf5d61c6ed0dd6327e414a609ac46b2ec723b4ce31bff14994a88cd0fe7668
Contents?: true
Size: 665 Bytes
Versions: 1
Compression:
Stored size: 665 Bytes
Contents
module Axlsx # A simple, self serializing class for storing conditional formattings class ConditionalFormattings < SimpleTypedList # creates a new Tables object def initialize(worksheet) raise ArgumentError, "you must provide a worksheet" unless worksheet.is_a?(Worksheet) super ConditionalFormatting @worksheet = worksheet end # The worksheet that owns this collection of tables # @return [Worksheet] attr_reader :worksheet # serialize the conditional formattings def to_xml_string(str = "") return if empty? each { |item| item.to_xml_string(str) } end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
caxlsx-3.2.0 | lib/axlsx/workbook/worksheet/conditional_formattings.rb |