Class: RubyXL::Vector

Inherits:
OOXMLObject show all
Defined in:
lib/rubyXL/objects/container_nodes.rb

Overview

Instance Attribute Summary

Attributes included from OOXMLObjectInstanceMethods

#local_namespaces

Instance Method Summary collapse

Methods included from OOXMLObjectInstanceMethods

#==, included, #index_in_collection, #initialize, #write_xml

Instance Method Details

#before_write_xmlObject



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