Sha256: b0567b837cc6bdd033d07ef8b006104220959bd7fd62b8e5b56fcfb34b44cfb0

Contents?: true

Size: 459 Bytes

Versions: 17

Compression:

Stored size: 459 Bytes

Contents

module Axlsx
  # a simple types list of DefinedName objects
  class DefinedNames < SimpleTypedList

    # creates the DefinedNames object
    def initialize
      super DefinedName
    end

    # Serialize to xml
    # @param [String] str
    # @return [String]
    def to_xml_string(str = '')
      return if empty?
      str << '<definedNames>'
      each { |defined_name| defined_name.to_xml_string(str) }
      str << '</definedNames>'
    end
  end
end

Version data entries

17 entries across 17 versions & 6 rubygems

Version Path
caxlsx-3.3.0 lib/axlsx/workbook/defined_names.rb
caxlsx-3.1.1 lib/axlsx/workbook/defined_names.rb
caxlsx-3.1.0 lib/axlsx/workbook/defined_names.rb
bonio-axlsx-2.2.3 lib/axlsx/workbook/defined_names.rb
caxlsx-3.0.4 lib/axlsx/workbook/defined_names.rb
caxlsx-3.0.3 lib/axlsx/workbook/defined_names.rb
caxlsx-3.0.2 lib/axlsx/workbook/defined_names.rb
caxlsx-3.0.1 lib/axlsx/workbook/defined_names.rb
caxlsx-3.0.0 lib/axlsx/workbook/defined_names.rb
axlsx-alt-3.0.1 lib/axlsx/workbook/defined_names.rb
axlsx-alt-3.0.0 lib/axlsx/workbook/defined_names.rb
axlsx-3.0.0.pre lib/axlsx/workbook/defined_names.rb
bonio-axlsx-2.2.2 lib/axlsx/workbook/defined_names.rb
bonio-axlsx-2.2.1 lib/axlsx/workbook/defined_names.rb
dg-axlsx-2.1.0 lib/axlsx/workbook/defined_names.rb
axlsx-2.1.0.pre lib/axlsx/workbook/defined_names.rb
l_axlsx-2.0.1 lib/axlsx/workbook/defined_names.rb