Sha256: 52fceeda3b78871f562ee58d50cd72ee0dfa16630ca576721cca1f2e6b7a413f
Contents?: true
Size: 640 Bytes
Versions: 30
Compression:
Stored size: 640 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
30 entries across 30 versions & 6 rubygems