rdoc/RubyXL/OOXMLContainerObject.html in rubyXL-3.4.23 vs rdoc/RubyXL/OOXMLContainerObject.html in rubyXL-3.4.24

- old
+ new

@@ -2,11 +2,11 @@ <html> <head> <meta charset="UTF-8"> -<title>class RubyXL::OOXMLContainerObject - rubyXL 3.4.23</title> +<title>class RubyXL::OOXMLContainerObject - rubyXL 3.4.24</title> <script type="text/javascript"> var rdoc_rel_prefix = "../"; var index_rel_prefix = "../"; </script> @@ -127,11 +127,11 @@ Calls superclass method <a href="OOXMLObjectInstanceMethods.html#method-c-new"><code>RubyXL::OOXMLObjectInstanceMethods::new</code></a> </div> <div class="method-source-code" id="new-source"> - <pre><span class="ruby-comment"># File lib/rubyXL/objects/ooxml_object.rb, line 382</span> + <pre><span class="ruby-comment"># File lib/rubyXL/objects/ooxml_object.rb, line 378</span> <span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">initialize</span>(<span class="ruby-identifier">params</span> = {}) <span class="ruby-identifier">array_content</span> = <span class="ruby-identifier">params</span>.<span class="ruby-identifier">delete</span>(<span class="ruby-value">:_</span>) <span class="ruby-keyword">super</span> <span class="ruby-identifier">array_content</span>.<span class="ruby-identifier">each_with_index</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">v</span>, <span class="ruby-identifier">i</span><span class="ruby-operator">|</span> <span class="ruby-keyword">self</span>[<span class="ruby-identifier">i</span>] = <span class="ruby-identifier">v</span> } <span class="ruby-keyword">if</span> <span class="ruby-identifier">array_content</span> <span class="ruby-keyword">end</span></pre> @@ -157,11 +157,11 @@ <div class="method-description"> <div class="method-source-code" id="define_count_attribute-source"> - <pre><span class="ruby-comment"># File lib/rubyXL/objects/ooxml_object.rb, line 414</span> + <pre><span class="ruby-comment"># File lib/rubyXL/objects/ooxml_object.rb, line 410</span> <span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">define_count_attribute</span> <span class="ruby-comment"># Count will be inherited from Array. so no need to define it explicitly.</span> <span class="ruby-identifier">define_attribute</span>(<span class="ruby-value">:count</span>, <span class="ruby-value">:uint</span>, <span class="ruby-value">:required</span> <span class="ruby-operator">=&gt;</span> <span class="ruby-keyword">true</span>, <span class="ruby-value">:computed</span> <span class="ruby-operator">=&gt;</span> <span class="ruby-keyword">true</span>) <span class="ruby-keyword">end</span></pre> </div> @@ -186,11 +186,11 @@ <div class="method-description"> <div class="method-source-code" id="before_write_xml-source"> - <pre><span class="ruby-comment"># File lib/rubyXL/objects/ooxml_object.rb, line 403</span> + <pre><span class="ruby-comment"># File lib/rubyXL/objects/ooxml_object.rb, line 399</span> <span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">before_write_xml</span> <span class="ruby-keyword">true</span> <span class="ruby-keyword">end</span></pre> </div> </div> @@ -211,11 +211,11 @@ Calls superclass method </div> <div class="method-source-code" id="inspect-source"> - <pre><span class="ruby-comment"># File lib/rubyXL/objects/ooxml_object.rb, line 407</span> + <pre><span class="ruby-comment"># File lib/rubyXL/objects/ooxml_object.rb, line 403</span> <span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">inspect</span> <span class="ruby-identifier">vars</span> = [ <span class="ruby-keyword">super</span> ] <span class="ruby-identifier">vars</span> = <span class="ruby-keyword">self</span>.<span class="ruby-identifier">instance_variables</span>.<span class="ruby-identifier">each</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">v</span><span class="ruby-operator">|</span> <span class="ruby-identifier">vars</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-node">&quot;#{v}=#{instance_variable_get(v).inspect}&quot;</span> } <span class="ruby-node">&quot;&lt;#{self.class}: #{super} #{vars.join(&quot;, &quot;)}&gt;&quot;</span> <span class="ruby-keyword">end</span></pre> @@ -245,11 +245,11 @@ Calls superclass method <a href="OOXMLObjectInstanceMethods.html#method-i-get_node_object"><code>RubyXL::OOXMLObjectInstanceMethods#get_node_object</code></a> </div> <div class="method-source-code" id="get_node_object-source"> - <pre><span class="ruby-comment"># File lib/rubyXL/objects/ooxml_object.rb, line 388</span> + <pre><span class="ruby-comment"># File lib/rubyXL/objects/ooxml_object.rb, line 384</span> <span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">get_node_object</span>(<span class="ruby-identifier">child_node_params</span>) <span class="ruby-keyword">if</span> <span class="ruby-identifier">child_node_params</span>[<span class="ruby-value">:is_array</span>] <span class="ruby-keyword">then</span> <span class="ruby-keyword">self</span> <span class="ruby-keyword">else</span> <span class="ruby-keyword">super</span> <span class="ruby-keyword">end</span> <span class="ruby-keyword">end</span></pre> @@ -268,10 +268,10 @@ <div class="method-description"> <div class="method-source-code" id="init_child_nodes-source"> - <pre><span class="ruby-comment"># File lib/rubyXL/objects/ooxml_object.rb, line 395</span> + <pre><span class="ruby-comment"># File lib/rubyXL/objects/ooxml_object.rb, line 391</span> <span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">init_child_nodes</span>(<span class="ruby-identifier">params</span>) <span class="ruby-identifier">obtain_class_variable</span>(<span class="ruby-value">:@@ooxml_child_nodes</span>).<span class="ruby-identifier">each_value</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">v</span><span class="ruby-operator">|</span> <span class="ruby-keyword">next</span> <span class="ruby-keyword">if</span> <span class="ruby-identifier">v</span>[<span class="ruby-value">:is_array</span>] <span class="ruby-comment"># Only one collection node allowed per OOXMLContainerObject, and it is contained in itself.</span> <span class="ruby-identifier">instance_variable_set</span>(<span class="ruby-node">&quot;@#{v[:accessor]}&quot;</span>, <span class="ruby-identifier">params</span>[<span class="ruby-identifier">v</span>[<span class="ruby-value">:accessor</span>]]) }