Class: RubyXL::Vector
- Inherits:
-
OOXMLObject
- Object
- OOXMLObject
- RubyXL::Vector
- Defined in:
- lib/rubyXL/objects/container_nodes.rb
Overview
Instance Method Summary collapse
Methods included from OOXMLObjectClassMethods
#define_attribute, #define_child_node, #define_element_name, #obtain_class_variable, #parse, #set_countable
Methods included from OOXMLObjectInstanceMethods
#dup, #index_in_collection, #initialize, #write_xml
Instance Method Details
#before_write_xml ⇒ Object
107 108 109 110 111 112 113 |
# File 'lib/rubyXL/objects/container_nodes.rb', line 107 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 |