Method: RubyXL::Vector#before_write_xml

Defined in:
lib/rubyXL/objects/container_nodes.rb

#before_write_xmlObject

[View source]

119
120
121
122
123
124
125
# File 'lib/rubyXL/objects/container_nodes.rb', line 119

def before_write_xml
  # Fill out the count attribute
  known_child_nodes = obtain_class_variable(:@@ooxml_child_nodes)
  self.size = 0
  known_child_nodes.values.each { |v| self.size += self.send(v[:accessor]).size }
  true
end