Sha256: 0a515c7a01b66035ce12c899dc2e0042d8ce1981285241921ba89e2e7b447123
Contents?: true
Size: 671 Bytes
Versions: 20
Compression:
Stored size: 671 Bytes
Contents
module Axlsx # A simple, self serializing class for storing pivot tables class PivotTables < SimpleTypedList # creates a new Tables object def initialize(worksheet) raise ArgumentError, "you must provide a worksheet" unless worksheet.is_a?(Worksheet) super PivotTable @worksheet = worksheet end # The worksheet that owns this collection of pivot tables # @return [Worksheet] attr_reader :worksheet # returns the relationships required by this collection def relationships return [] if empty? map{ |pivot_table| Relationship.new(pivot_table, PIVOT_TABLE_R, "../#{pivot_table.pn}") } end end end
Version data entries
20 entries across 20 versions & 6 rubygems