Sha256: 7003f3cf61fa57252b46e389b6917bfff206b3066be62d8c45309715794bdf7e
Contents?: true
Size: 710 Bytes
Versions: 30
Compression:
Stored size: 710 Bytes
Contents
module Axlsx # A simple, self serializing class for storing conditional formattings class DataValidations < SimpleTypedList # creates a new Tables object def initialize(worksheet) raise ArgumentError, "you must provide a worksheet" unless worksheet.is_a?(Worksheet) super DataValidation @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? str << "<dataValidations count='#{size}'>" each { |item| item.to_xml_string(str) } str << '</dataValidations>' end end end
Version data entries
30 entries across 30 versions & 6 rubygems