Method: Axlsx::IconSet#to_xml_string
- Defined in:
- lib/axlsx/workbook/worksheet/icon_set.rb
#to_xml_string(str = "") ⇒ String
Serialize this object to an xml string
65 66 67 68 69 70 71 |
# File 'lib/axlsx/workbook/worksheet/icon_set.rb', line 65 def to_xml_string(str="") str << '<iconSet ' str << instance_values.map { |key, value| '' << key << '="' << value.to_s << '"' unless CHILD_ELEMENTS.include?(key.to_sym) }.join(' ') str << '>' @value_objects.each { |cfvo| cfvo.to_xml_string(str) } str << '</iconSet>' end |