rdoc/RubyXL/FontConvenienceMethods.html in rubyXL-3.4.3 vs rdoc/RubyXL/FontConvenienceMethods.html in rubyXL-3.4.4

- old
+ new

@@ -2,11 +2,11 @@ <html> <head> <meta charset="UTF-8"> -<title>module RubyXL::FontConvenienceMethods - rubyXL 3.4.3</title> +<title>module RubyXL::FontConvenienceMethods - rubyXL 3.4.4</title> <script type="text/javascript"> var rdoc_rel_prefix = "../"; var index_rel_prefix = "../"; </script> @@ -106,12 +106,10 @@ <section class="description"> </section> - - <section id="5Buntitled-5D" class="documentation-section"> @@ -144,11 +142,11 @@ <div class="method-source-code" id="get_name-source"> <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/font.rb, line 21</span> -<span class="ruby-keyword">def</span> <span class="ruby-identifier">get_name</span> +<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">get_name</span> <span class="ruby-identifier">name</span> <span class="ruby-operator">&amp;&amp;</span> <span class="ruby-identifier">name</span>.<span class="ruby-identifier">val</span> <span class="ruby-keyword">end</span></pre> </div> </div> @@ -177,11 +175,11 @@ <div class="method-source-code" id="get_rgb_color-source"> <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/font.rb, line 29</span> -<span class="ruby-keyword">def</span> <span class="ruby-identifier">get_rgb_color</span> +<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">get_rgb_color</span> <span class="ruby-identifier">color</span> <span class="ruby-operator">&amp;&amp;</span> <span class="ruby-identifier">color</span>.<span class="ruby-identifier">rgb</span> <span class="ruby-keyword">end</span></pre> </div> </div> @@ -210,11 +208,11 @@ <div class="method-source-code" id="get_size-source"> <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/font.rb, line 25</span> -<span class="ruby-keyword">def</span> <span class="ruby-identifier">get_size</span> +<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">get_size</span> <span class="ruby-identifier">sz</span> <span class="ruby-operator">&amp;&amp;</span> <span class="ruby-identifier">sz</span>.<span class="ruby-identifier">val</span> <span class="ruby-keyword">end</span></pre> </div> </div> @@ -243,11 +241,11 @@ <div class="method-source-code" id="is_bold-source"> <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/font.rb, line 9</span> -<span class="ruby-keyword">def</span> <span class="ruby-identifier">is_bold</span> +<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">is_bold</span> <span class="ruby-identifier">b</span> <span class="ruby-operator">&amp;&amp;</span> (<span class="ruby-identifier">b</span>.<span class="ruby-identifier">val</span> <span class="ruby-operator">!=</span> <span class="ruby-keyword">false</span>) <span class="ruby-keyword">end</span></pre> </div> </div> @@ -269,19 +267,18 @@ </div> <div class="method-description"> - <p>Funny enough, but presence of &lt;i&gt; without value (equivalent to `val -== nul`) means “italic = true”! Same is true for bold, strikethrough, etc</p> + <p>Funny enough, but presence of &lt;i&gt; without value (equivalent to `val == nul`) means “italic = true”! Same is true for bold, strikethrough, etc</p> <div class="method-source-code" id="is_italic-source"> <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/font.rb, line 5</span> -<span class="ruby-keyword">def</span> <span class="ruby-identifier">is_italic</span> +<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">is_italic</span> <span class="ruby-identifier">i</span> <span class="ruby-operator">&amp;&amp;</span> (<span class="ruby-identifier">i</span>.<span class="ruby-identifier">val</span> <span class="ruby-operator">!=</span> <span class="ruby-keyword">false</span>) <span class="ruby-keyword">end</span></pre> </div> </div> @@ -310,11 +307,11 @@ <div class="method-source-code" id="is_strikethrough-source"> <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/font.rb, line 17</span> -<span class="ruby-keyword">def</span> <span class="ruby-identifier">is_strikethrough</span> +<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">is_strikethrough</span> <span class="ruby-identifier">strike</span> <span class="ruby-operator">&amp;&amp;</span> (<span class="ruby-identifier">strike</span>.<span class="ruby-identifier">val</span> <span class="ruby-operator">!=</span> <span class="ruby-keyword">false</span>) <span class="ruby-keyword">end</span></pre> </div> </div> @@ -343,11 +340,11 @@ <div class="method-source-code" id="is_underlined-source"> <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/font.rb, line 13</span> -<span class="ruby-keyword">def</span> <span class="ruby-identifier">is_underlined</span> +<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">is_underlined</span> <span class="ruby-identifier">u</span> <span class="ruby-operator">&amp;&amp;</span> (<span class="ruby-identifier">u</span>.<span class="ruby-identifier">val</span> <span class="ruby-operator">!=</span> <span class="ruby-keyword">false</span>) <span class="ruby-keyword">end</span></pre> </div> </div> @@ -376,12 +373,12 @@ <div class="method-source-code" id="set_bold-source"> <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/font.rb, line 37</span> -<span class="ruby-keyword">def</span> <span class="ruby-identifier">set_bold</span>(<span class="ruby-identifier">val</span>) - <span class="ruby-keyword">self</span>.<span class="ruby-identifier">b</span> = <span class="ruby-constant">RubyXL</span><span class="ruby-operator">::</span><span class="ruby-constant">BooleanValue</span>.<span class="ruby-identifier">new</span>(<span class="ruby-value">:val</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">val</span>) +<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">set_bold</span>(<span class="ruby-identifier">val</span>) + <span class="ruby-keyword">self</span>.<span class="ruby-identifier">b</span> = <span class="ruby-constant">RubyXL</span><span class="ruby-operator">::</span><span class="ruby-constant">BooleanValue</span>.<span class="ruby-identifier">new</span>(<span class="ruby-value">:val</span> <span class="ruby-operator">=&gt;</span> <span class="ruby-identifier">val</span>) <span class="ruby-keyword">end</span></pre> </div> </div> @@ -409,12 +406,12 @@ <div class="method-source-code" id="set_italic-source"> <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/font.rb, line 33</span> -<span class="ruby-keyword">def</span> <span class="ruby-identifier">set_italic</span>(<span class="ruby-identifier">val</span>) - <span class="ruby-keyword">self</span>.<span class="ruby-identifier">i</span> = <span class="ruby-constant">RubyXL</span><span class="ruby-operator">::</span><span class="ruby-constant">BooleanValue</span>.<span class="ruby-identifier">new</span>(<span class="ruby-value">:val</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">val</span>) +<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">set_italic</span>(<span class="ruby-identifier">val</span>) + <span class="ruby-keyword">self</span>.<span class="ruby-identifier">i</span> = <span class="ruby-constant">RubyXL</span><span class="ruby-operator">::</span><span class="ruby-constant">BooleanValue</span>.<span class="ruby-identifier">new</span>(<span class="ruby-value">:val</span> <span class="ruby-operator">=&gt;</span> <span class="ruby-identifier">val</span>) <span class="ruby-keyword">end</span></pre> </div> </div> @@ -442,12 +439,12 @@ <div class="method-source-code" id="set_name-source"> <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/font.rb, line 49</span> -<span class="ruby-keyword">def</span> <span class="ruby-identifier">set_name</span>(<span class="ruby-identifier">val</span>) - <span class="ruby-keyword">self</span>.<span class="ruby-identifier">name</span> = <span class="ruby-constant">RubyXL</span><span class="ruby-operator">::</span><span class="ruby-constant">StringValue</span>.<span class="ruby-identifier">new</span>(<span class="ruby-value">:val</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">val</span>) +<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">set_name</span>(<span class="ruby-identifier">val</span>) + <span class="ruby-keyword">self</span>.<span class="ruby-identifier">name</span> = <span class="ruby-constant">RubyXL</span><span class="ruby-operator">::</span><span class="ruby-constant">StringValue</span>.<span class="ruby-identifier">new</span>(<span class="ruby-value">:val</span> <span class="ruby-operator">=&gt;</span> <span class="ruby-identifier">val</span>) <span class="ruby-keyword">end</span></pre> </div> </div> @@ -475,12 +472,12 @@ <div class="method-source-code" id="set_rgb_color-source"> <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/font.rb, line 57</span> -<span class="ruby-keyword">def</span> <span class="ruby-identifier">set_rgb_color</span>(<span class="ruby-identifier">font_color</span>) - <span class="ruby-keyword">self</span>.<span class="ruby-identifier">color</span> = <span class="ruby-constant">RubyXL</span><span class="ruby-operator">::</span><span class="ruby-constant">Color</span>.<span class="ruby-identifier">new</span>(<span class="ruby-value">:rgb</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">font_color</span>.<span class="ruby-identifier">to_s</span>) +<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">set_rgb_color</span>(<span class="ruby-identifier">font_color</span>) + <span class="ruby-keyword">self</span>.<span class="ruby-identifier">color</span> = <span class="ruby-constant">RubyXL</span><span class="ruby-operator">::</span><span class="ruby-constant">Color</span>.<span class="ruby-identifier">new</span>(<span class="ruby-value">:rgb</span> <span class="ruby-operator">=&gt;</span> <span class="ruby-identifier">font_color</span>.<span class="ruby-identifier">to_s</span>) <span class="ruby-keyword">end</span></pre> </div> </div> @@ -508,12 +505,12 @@ <div class="method-source-code" id="set_size-source"> <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/font.rb, line 53</span> -<span class="ruby-keyword">def</span> <span class="ruby-identifier">set_size</span>(<span class="ruby-identifier">val</span>) - <span class="ruby-keyword">self</span>.<span class="ruby-identifier">sz</span> = <span class="ruby-constant">RubyXL</span><span class="ruby-operator">::</span><span class="ruby-constant">FloatValue</span>.<span class="ruby-identifier">new</span>(<span class="ruby-value">:val</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">val</span>) +<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">set_size</span>(<span class="ruby-identifier">val</span>) + <span class="ruby-keyword">self</span>.<span class="ruby-identifier">sz</span> = <span class="ruby-constant">RubyXL</span><span class="ruby-operator">::</span><span class="ruby-constant">FloatValue</span>.<span class="ruby-identifier">new</span>(<span class="ruby-value">:val</span> <span class="ruby-operator">=&gt;</span> <span class="ruby-identifier">val</span>) <span class="ruby-keyword">end</span></pre> </div> </div> @@ -541,12 +538,12 @@ <div class="method-source-code" id="set_strikethrough-source"> <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/font.rb, line 45</span> -<span class="ruby-keyword">def</span> <span class="ruby-identifier">set_strikethrough</span>(<span class="ruby-identifier">val</span>) - <span class="ruby-keyword">self</span>.<span class="ruby-identifier">strike</span> = <span class="ruby-constant">RubyXL</span><span class="ruby-operator">::</span><span class="ruby-constant">BooleanValue</span>.<span class="ruby-identifier">new</span>(<span class="ruby-value">:val</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">val</span>) +<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">set_strikethrough</span>(<span class="ruby-identifier">val</span>) + <span class="ruby-keyword">self</span>.<span class="ruby-identifier">strike</span> = <span class="ruby-constant">RubyXL</span><span class="ruby-operator">::</span><span class="ruby-constant">BooleanValue</span>.<span class="ruby-identifier">new</span>(<span class="ruby-value">:val</span> <span class="ruby-operator">=&gt;</span> <span class="ruby-identifier">val</span>) <span class="ruby-keyword">end</span></pre> </div> </div> @@ -574,12 +571,12 @@ <div class="method-source-code" id="set_underline-source"> <pre><span class="ruby-comment"># File lib/rubyXL/convenience_methods/font.rb, line 41</span> -<span class="ruby-keyword">def</span> <span class="ruby-identifier">set_underline</span>(<span class="ruby-identifier">val</span>) - <span class="ruby-keyword">self</span>.<span class="ruby-identifier">u</span> = <span class="ruby-constant">RubyXL</span><span class="ruby-operator">::</span><span class="ruby-constant">BooleanValue</span>.<span class="ruby-identifier">new</span>(<span class="ruby-value">:val</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">val</span>) +<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">set_underline</span>(<span class="ruby-identifier">val</span>) + <span class="ruby-keyword">self</span>.<span class="ruby-identifier">u</span> = <span class="ruby-constant">RubyXL</span><span class="ruby-operator">::</span><span class="ruby-constant">BooleanValue</span>.<span class="ruby-identifier">new</span>(<span class="ruby-value">:val</span> <span class="ruby-operator">=&gt;</span> <span class="ruby-identifier">val</span>) <span class="ruby-keyword">end</span></pre> </div> </div> @@ -594,10 +591,10 @@ </section> </main> <footer id="validator-badges" role="contentinfo"> - <p><a href="http://validator.w3.org/check/referer">Validate</a> - <p>Generated by <a href="https://rdoc.github.io/rdoc">RDoc</a> 5.1.0. + <p><a href="https://validator.w3.org/check/referer">Validate</a> + <p>Generated by <a href="https://ruby.github.io/rdoc/">RDoc</a> 6.1.1. <p>Based on <a href="http://deveiate.org/projects/Darkfish-RDoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>. </footer>