Sha256: e9aad2e3e54a9fa6420253e2059112096f69bc6cb9b65cc5f29f0bbfe4014edc

Contents?: true

Size: 457 Bytes

Versions: 1

Compression:

Stored size: 457 Bytes

Contents

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

1 entries across 1 versions & 1 rubygems

Version Path
caxlsx-3.2.0 lib/axlsx/workbook/workbook_views.rb