diff options
| author | Randy Morgan <[email protected]> | 2011-11-26 13:20:57 +0900 |
|---|---|---|
| committer | Randy Morgan <[email protected]> | 2011-11-26 13:20:57 +0900 |
| commit | 11303a4d6664d9a7ff7bc408035d2ab70378a375 (patch) | |
| tree | 51c675ae3ab8cd6c1afd7087145261b1eb2ec54c /doc/Axlsx/TableStyle.html | |
| parent | 044afe5a35db42cefce4f18a0fecc3da90cab1b5 (diff) | |
| download | caxlsx-11303a4d6664d9a7ff7bc408035d2ab70378a375.tar.gz caxlsx-11303a4d6664d9a7ff7bc408035d2ab70378a375.zip | |
adding in support for ruby 1.9.3
release version 1.0.9
Diffstat (limited to 'doc/Axlsx/TableStyle.html')
| -rw-r--r-- | doc/Axlsx/TableStyle.html | 149 |
1 files changed, 62 insertions, 87 deletions
diff --git a/doc/Axlsx/TableStyle.html b/doc/Axlsx/TableStyle.html index 88399487..1f43f1e9 100644 --- a/doc/Axlsx/TableStyle.html +++ b/doc/Axlsx/TableStyle.html @@ -6,7 +6,7 @@ <title> Class: Axlsx::TableStyle - — Documentation by YARD 0.7.3 + — AXLSX </title> @@ -99,16 +99,14 @@ <div class="note notetag"> <strong>Note:</strong> - <div class='inline'><p> -Table are not supported in this version and only the defaults required for -a valid workbook are created. -</p> + <div class='inline'> +<p>Table are not supported in this version and only the defaults required for +a valid workbook are created.</p> </div> </div> -<p> -A single table style definition and is a collection for tableStyleElements -</p> + +<p>A single table style definition and is a collection for tableStyleElements</p> </div> @@ -144,9 +142,8 @@ A single table style definition and is a collection for tableStyleElements - <span class="summary_desc"><div class='inline'><p> -The name of this table style. -</p> + <span class="summary_desc"><div class='inline'> +<p>The name of this table style.</p> </div></span> </li> @@ -171,9 +168,8 @@ The name of this table style. - <span class="summary_desc"><div class='inline'><p> -indicates if this style should be applied to pivot tables. -</p> + <span class="summary_desc"><div class='inline'> +<p>indicates if this style should be applied to pivot tables.</p> </div></span> </li> @@ -198,9 +194,8 @@ indicates if this style should be applied to pivot tables. - <span class="summary_desc"><div class='inline'><p> -indicates if this style should be applied to tables. -</p> + <span class="summary_desc"><div class='inline'> +<p>indicates if this style should be applied to tables.</p> </div></span> </li> @@ -245,9 +240,8 @@ indicates if this style should be applied to tables. - <span class="summary_desc"><div class='inline'><p> -creates a new TableStyle object. -</p> + <span class="summary_desc"><div class='inline'> +<p>creates a new TableStyle object.</p> </div></span> </li> @@ -269,9 +263,8 @@ creates a new TableStyle object. - <span class="summary_desc"><div class='inline'><p> -Serializes the table style. -</p> + <span class="summary_desc"><div class='inline'> +<p>Serializes the table style.</p> </div></span> </li> @@ -285,12 +278,7 @@ Serializes the table style. - - - - <h3 class="inherited">Methods inherited from <span class='object_link'><a href="SimpleTypedList.html" title="Axlsx::SimpleTypedList (class)">SimpleTypedList</a></span></h3> - <p class="inherited"><span class='object_link'><a href="SimpleTypedList.html#%3C%3C-instance_method" title="Axlsx::SimpleTypedList#<< (method)">#<<</a></span>, <span class='object_link'><a href="SimpleTypedList.html#%3D%3D-instance_method" title="Axlsx::SimpleTypedList#== (method)">#==</a></span>, <span class='object_link'><a href="SimpleTypedList.html#%5B%5D%3D-instance_method" title="Axlsx::SimpleTypedList#[]= (method)">#[]=</a></span>, <span class='object_link'><a href="SimpleTypedList.html#delete-instance_method" title="Axlsx::SimpleTypedList#delete (method)">#delete</a></span>, <span class='object_link'><a href="SimpleTypedList.html#delete_at-instance_method" title="Axlsx::SimpleTypedList#delete_at (method)">#delete_at</a></span>, <span class='object_link'><a href="SimpleTypedList.html#lock-instance_method" title="Axlsx::SimpleTypedList#lock (method)">#lock</a></span>, <span class='object_link'><a href="SimpleTypedList.html#method_missing-instance_method" title="Axlsx::SimpleTypedList#method_missing (method)">#method_missing</a></span>, <span class='object_link'><a href="SimpleTypedList.html#protected%3F-instance_method" title="Axlsx::SimpleTypedList#protected? (method)">#protected?</a></span>, <span class='object_link'><a href="SimpleTypedList.html#push-instance_method" title="Axlsx::SimpleTypedList#push (method)">#push</a></span>, <span class='object_link'><a href="SimpleTypedList.html#unlock-instance_method" title="Axlsx::SimpleTypedList#unlock (method)">#unlock</a></span></p> -<div id="constructor_details" class="method_details_list"> + <div id="constructor_details" class="method_details_list"> <h2>Constructor Details</h2> <div class="method_details first"> @@ -302,9 +290,8 @@ Serializes the table style. </p><div class="docstring"> <div class="discussion"> - <p> -creates a new TableStyle object -</p> + +<p>creates a new TableStyle object</p> </div> @@ -336,9 +323,8 @@ creates a new TableStyle object — - <div class='inline'><p> -a customizable set of options -</p> + <div class='inline'> +<p>a customizable set of options</p> </div> </li> @@ -385,9 +371,8 @@ a customizable set of options — - <div class='inline'><p> -if name option is not provided. -</p> + <div class='inline'> +<p>if name option is not provided.</p> </div> </li> @@ -411,14 +396,13 @@ if name option is not provided. <td> <pre class="code"><span class="info file"># File 'lib/axlsx/stylesheet/table_style.rb', line 23</span> -<span class='def def kw'>def</span> <span class='initialize identifier id'>initialize</span><span class='lparen token'>(</span><span class='name identifier id'>name</span><span class='comma token'>,</span> <span class='options identifier id'>options</span><span class='assign token'>=</span><span class='lbrace token'>{</span><span class='rbrace token'>}</span><span class='rparen token'>)</span> - <span class='self self kw'>self</span><span class='dot token'>.</span><span class='name identifier id'>name</span> <span class='assign token'>=</span> <span class='name identifier id'>name</span> - <span class='options identifier id'>options</span><span class='dot token'>.</span><span class='each identifier id'>each</span> <span class='do do kw'>do</span> <span class='bitor op'>|</span><span class='o identifier id'>o</span><span class='bitor op'>|</span> - <span class='self self kw'>self</span><span class='dot token'>.</span><span class='send identifier id'>send</span><span class='lparen token'>(</span><span class='dstring node'>"#{o[0]}="</span><span class='comma token'>,</span> <span class='o identifier id'>o</span><span class='lbrack token'>[</span><span class='integer val'>1</span><span class='rbrack token'>]</span><span class='rparen token'>)</span> <span class='if if_mod kw'>if</span> <span class='self self kw'>self</span><span class='dot token'>.</span><span class='respond_to? fid id'>respond_to?</span> <span class='o identifier id'>o</span><span class='lbrack token'>[</span><span class='integer val'>0</span><span class='rbrack token'>]</span> - <span class='end end kw'>end</span> - <span class='super super kw'>super</span> <span class='TableStyleElement constant id'>TableStyleElement</span> -<span class='end end kw'>end</span> -</pre> +<span class='kw'>def</span> <span class='id initialize'>initialize</span><span class='lparen'>(</span><span class='id name'>name</span><span class='comma'>,</span> <span class='id options'>options</span><span class='op'>=</span><span class='lbrace'>{</span><span class='rbrace'>}</span><span class='rparen'>)</span> + <span class='kw'>self</span><span class='period'>.</span><span class='id name'>name</span> <span class='op'>=</span> <span class='id name'>name</span> + <span class='id options'>options</span><span class='period'>.</span><span class='id each'>each</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id o'>o</span><span class='op'>|</span> + <span class='kw'>self</span><span class='period'>.</span><span class='id send'>send</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>"</span><span class='embexpr_beg'>#{</span><span class='id o'>o</span><span class='lbracket'>[</span><span class='int'>0</span><span class='rbracket'>]</span><span class='rbrace'>}</span><span class='tstring_content'>=</span><span class='tstring_end'>"</span></span><span class='comma'>,</span> <span class='id o'>o</span><span class='lbracket'>[</span><span class='int'>1</span><span class='rbracket'>]</span><span class='rparen'>)</span> <span class='kw'>if</span> <span class='kw'>self</span><span class='period'>.</span><span class='id respond_to?'>respond_to?</span> <span class='id o'>o</span><span class='lbracket'>[</span><span class='int'>0</span><span class='rbracket'>]</span> + <span class='kw'>end</span> + <span class='kw'>super</span> <span class='const'>TableStyleElement</span> +<span class='kw'>end</span></pre> </td> </tr> </table> @@ -451,9 +435,8 @@ if name option is not provided. </p><div class="docstring"> <div class="discussion"> - <p> -The name of this table style -</p> + +<p>The name of this table style</p> </div> @@ -487,10 +470,9 @@ The name of this table style <td> <pre class="code"><span class="info file"># File 'lib/axlsx/stylesheet/table_style.rb', line 8</span> -<span class='def def kw'>def</span> <span class='name identifier id'>name</span> - <span class='@name ivar id'>@name</span> -<span class='end end kw'>end</span> -</pre> +<span class='kw'>def</span> <span class='id name'>name</span> + <span class='ivar'>@name</span> +<span class='kw'>end</span></pre> </td> </tr> </table> @@ -508,9 +490,8 @@ The name of this table style </p><div class="docstring"> <div class="discussion"> - <p> -indicates if this style should be applied to pivot tables -</p> + +<p>indicates if this style should be applied to pivot tables</p> </div> @@ -544,10 +525,9 @@ indicates if this style should be applied to pivot tables <td> <pre class="code"><span class="info file"># File 'lib/axlsx/stylesheet/table_style.rb', line 12</span> -<span class='def def kw'>def</span> <span class='pivot identifier id'>pivot</span> - <span class='@pivot ivar id'>@pivot</span> -<span class='end end kw'>end</span> -</pre> +<span class='kw'>def</span> <span class='id pivot'>pivot</span> + <span class='ivar'>@pivot</span> +<span class='kw'>end</span></pre> </td> </tr> </table> @@ -565,9 +545,8 @@ indicates if this style should be applied to pivot tables </p><div class="docstring"> <div class="discussion"> - <p> -indicates if this style should be applied to tables -</p> + +<p>indicates if this style should be applied to tables</p> </div> @@ -601,10 +580,9 @@ indicates if this style should be applied to tables <td> <pre class="code"><span class="info file"># File 'lib/axlsx/stylesheet/table_style.rb', line 16</span> -<span class='def def kw'>def</span> <span class='table identifier id'>table</span> - <span class='@table ivar id'>@table</span> -<span class='end end kw'>end</span> -</pre> +<span class='kw'>def</span> <span class='id table'>table</span> + <span class='ivar'>@table</span> +<span class='kw'>end</span></pre> </td> </tr> </table> @@ -626,9 +604,8 @@ indicates if this style should be applied to tables </p><div class="docstring"> <div class="discussion"> - <p> -Serializes the table style -</p> + +<p>Serializes the table style</p> </div> @@ -647,9 +624,8 @@ Serializes the table style — - <div class='inline'><p> -The document builder instance this objects xml will be added to. -</p> + <div class='inline'> +<p>The document builder instance this objects xml will be added to.</p> </div> </li> @@ -676,21 +652,20 @@ The document builder instance this objects xml will be added to. <pre class="lines"> -38 -39 -40 41 -42</pre> +42 +43 +44 +45</pre> </td> <td> - <pre class="code"><span class="info file"># File 'lib/axlsx/stylesheet/table_style.rb', line 38</span> - -<span class='def def kw'>def</span> <span class='to_xml identifier id'>to_xml</span><span class='lparen token'>(</span><span class='xml identifier id'>xml</span><span class='rparen token'>)</span> - <span class='attr identifier id'>attr</span> <span class='assign token'>=</span> <span class='self self kw'>self</span><span class='dot token'>.</span><span class='instance_values identifier id'>instance_values</span><span class='dot token'>.</span><span class='select identifier id'>select</span> <span class='lbrace token'>{</span> <span class='bitor op'>|</span><span class='k identifier id'>k</span><span class='comma token'>,</span> <span class='v identifier id'>v</span><span class='bitor op'>|</span> <span class='lbrack token'>[</span><span class='symbol val'>:name</span><span class='comma token'>,</span> <span class='symbol val'>:pivot</span><span class='comma token'>,</span> <span class='symbol val'>:table</span><span class='rbrack token'>]</span><span class='dot token'>.</span><span class='include? fid id'>include?</span> <span class='k identifier id'>k</span> <span class='rbrace token'>}</span> - <span class='attr identifier id'>attr</span><span class='lbrack token'>[</span><span class='symbol val'>:count</span><span class='rbrack token'>]</span> <span class='assign token'>=</span> <span class='self self kw'>self</span><span class='dot token'>.</span><span class='size identifier id'>size</span> - <span class='xml identifier id'>xml</span><span class='dot token'>.</span><span class='tableStyle identifier id'>tableStyle</span><span class='lparen token'>(</span><span class='attr identifier id'>attr</span><span class='rparen token'>)</span> <span class='lbrace token'>{</span> <span class='self self kw'>self</span><span class='dot token'>.</span><span class='each identifier id'>each</span> <span class='lbrace token'>{</span> <span class='bitor op'>|</span><span class='table_style_el identifier id'>table_style_el</span><span class='bitor op'>|</span> <span class='table_style_el identifier id'>table_style_el</span><span class='dot token'>.</span><span class='to_xml identifier id'>to_xml</span><span class='lparen token'>(</span><span class='xml identifier id'>xml</span><span class='rparen token'>)</span> <span class='rbrace token'>}</span> <span class='rbrace token'>}</span> -<span class='end end kw'>end</span> -</pre> + <pre class="code"><span class="info file"># File 'lib/axlsx/stylesheet/table_style.rb', line 41</span> + +<span class='kw'>def</span> <span class='id to_xml'>to_xml</span><span class='lparen'>(</span><span class='id xml'>xml</span><span class='rparen'>)</span> + <span class='id attr'>attr</span> <span class='op'>=</span> <span class='kw'>self</span><span class='period'>.</span><span class='id instance_values'>instance_values</span><span class='period'>.</span><span class='id select'>select</span> <span class='lbrace'>{</span> <span class='op'>|</span><span class='id k'>k</span><span class='comma'>,</span> <span class='id v'>v</span><span class='op'>|</span> <span class='lbracket'>[</span><span class='symbol'>:name</span><span class='comma'>,</span> <span class='symbol'>:pivot</span><span class='comma'>,</span> <span class='symbol'>:table</span><span class='rbracket'>]</span><span class='period'>.</span><span class='id include?'>include?</span> <span class='id k'>k</span> <span class='rbrace'>}</span> + <span class='id attr'>attr</span><span class='lbracket'>[</span><span class='symbol'>:count</span><span class='rbracket'>]</span> <span class='op'>=</span> <span class='kw'>self</span><span class='period'>.</span><span class='id size'>size</span> + <span class='id xml'>xml</span><span class='period'>.</span><span class='id tableStyle'>tableStyle</span><span class='lparen'>(</span><span class='id attr'>attr</span><span class='rparen'>)</span> <span class='lbrace'>{</span> <span class='kw'>self</span><span class='period'>.</span><span class='id each'>each</span> <span class='lbrace'>{</span> <span class='op'>|</span><span class='id table_style_el'>table_style_el</span><span class='op'>|</span> <span class='id table_style_el'>table_style_el</span><span class='period'>.</span><span class='id to_xml'>to_xml</span><span class='lparen'>(</span><span class='id xml'>xml</span><span class='rparen'>)</span> <span class='rbrace'>}</span> <span class='rbrace'>}</span> +<span class='kw'>end</span></pre> </td> </tr> </table> @@ -701,9 +676,9 @@ The document builder instance this objects xml will be added to. </div> <div id="footer"> - Generated on Wed Nov 23 22:20:45 2011 by + Generated on Sat Nov 26 13:16:39 2011 by <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a> - 0.7.3 (ruby-1.8.7). + 0.7.3 (ruby-1.9.3). </div> </body> |
