class Axlsx::DefinedNames

a simple types list of DefinedName objects

Public Class Methods

new() click to toggle source

creates the DefinedNames object

Calls superclass method Axlsx::SimpleTypedList::new
# File lib/axlsx/workbook/defined_names.rb, line 6
def initialize
  super DefinedName
end

Public Instance Methods

to_xml_string(str = '') click to toggle source

Serialize to xml @param [String] str @return [String]

# File lib/axlsx/workbook/defined_names.rb, line 13
def to_xml_string(str = '')
  return if empty?
  str << '<definedNames>'
  each { |defined_name| defined_name.to_xml_string(str) }
  str << '</definedNames>'
end