Sha256: 8005875efbf649240983d6173bb2c8120ab7ded2f05f0db42fc0b8296f7b4d1c
Contents?: true
Size: 738 Bytes
Versions: 1
Compression:
Stored size: 738 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
caxlsx-3.2.0 | lib/axlsx/workbook/worksheet/data_validations.rb |