Sha256: 34bd2266ef52507248057e8514c5619fa30b2dc3706a7ee8adef0674a672c287

Contents?: true

Size: 466 Bytes

Versions: 4

Compression:

Stored size: 466 Bytes

Contents

# frozen_string_literal: true

module Axlsx
  # a simple types list of BookView objects
  class WorkbookViews < SimpleTypedList
    # creates the book views object
    def initialize
      super(WorkbookView)
    end

    # Serialize to xml
    # @param [String] str
    # @return [String]
    def to_xml_string(str = +'')
      return if empty?

      str << "<bookViews>"
      each { |view| view.to_xml_string(str) }
      str << '</bookViews>'
    end
  end
end

Version data entries

4 entries across 4 versions & 2 rubygems

Version Path
cm-admin-1.5.22 vendor/bundle/ruby/3.3.0/gems/caxlsx-4.1.0/lib/axlsx/workbook/workbook_views.rb
cm-admin-1.5.21 vendor/bundle/ruby/3.3.0/gems/caxlsx-4.1.0/lib/axlsx/workbook/workbook_views.rb
cm-admin-1.5.20 vendor/bundle/ruby/3.3.0/gems/caxlsx-4.1.0/lib/axlsx/workbook/workbook_views.rb
caxlsx-4.1.0 lib/axlsx/workbook/workbook_views.rb