Class: RubyXL::Vector

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

Overview

Instance Method Summary collapse

Methods inherited from OOXMLObject

#add_to_zip, define_attribute, define_child_node, define_element_name, #dup, filepath, #index_in_collection, #initialize, obtain_class_variable, parse, parse_file, set_countable, set_namespaces, #write_xml

Constructor Details

This class inherits a constructor from RubyXL::OOXMLObject

Instance Method Details

#before_write_xmlObject



108
109
110
111
112
113
114
# File 'lib/rubyXL/objects/container_nodes.rb', line 108

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