doc/TermUtils/Tab/Column.html in term_utils-0.3.0 vs doc/TermUtils/Tab/Column.html in term_utils-0.3.1
- old
+ new
@@ -220,11 +220,11 @@
<li class="public ">
<span class="summary_signature">
- <a href="#id-instance_method" title="#id (instance method)">#<strong>id</strong> ⇒ Symbol </a>
+ <a href="#header-instance_method" title="#header (instance method)">#<strong>header</strong> ⇒ TermUtils::Tab::Header </a>
</span>
@@ -245,11 +245,11 @@
<li class="public ">
<span class="summary_signature">
- <a href="#index-instance_method" title="#index (instance method)">#<strong>index</strong> ⇒ Integer </a>
+ <a href="#id-instance_method" title="#id (instance method)">#<strong>id</strong> ⇒ Symbol </a>
</span>
@@ -270,11 +270,11 @@
<li class="public ">
<span class="summary_signature">
- <a href="#width-instance_method" title="#width (instance method)">#<strong>width</strong> ⇒ Integer </a>
+ <a href="#index-instance_method" title="#index (instance method)">#<strong>index</strong> ⇒ Integer </a>
</span>
@@ -292,46 +292,47 @@
<span class="summary_desc"><div class='inline'></div></span>
</li>
- </ul>
-
-
-
-
-
- <h2>
- Instance Method Summary
- <small><a href="#" class="summary_toggle">collapse</a></small>
- </h2>
-
- <ul class="summary">
-
- <li class="public ">
+ <li class="public ">
<span class="summary_signature">
- <a href="#align_cut-instance_method" title="#align_cut (instance method)">#<strong>align_cut</strong>(str) ⇒ String </a>
+ <a href="#width-instance_method" title="#width (instance method)">#<strong>width</strong> ⇒ Integer </a>
</span>
+
+
+
- <span class="summary_desc"><div class='inline'>
-<p>Aligns and cuts a given string.</p>
-</div></span>
+ <span class="summary_desc"><div class='inline'></div></span>
</li>
+
+ </ul>
+
+
+
+
+
+ <h2>
+ Instance Method Summary
+ <small><a href="#" class="summary_toggle">collapse</a></small>
+ </h2>
+
+ <ul class="summary">
<li class="public ">
<span class="summary_signature">
<a href="#initialize-instance_method" title="#initialize (instance method)">#<strong>initialize</strong>(opts = {}) ⇒ Column </a>
@@ -358,11 +359,11 @@
<li class="public ">
<span class="summary_signature">
- <a href="#render_data-instance_method" title="#render_data (instance method)">#<strong>render_data</strong>(v) ⇒ Object </a>
+ <a href="#render_data-instance_method" title="#render_data (instance method)">#<strong>render_data</strong>(val) ⇒ Object </a>
</span>
@@ -382,11 +383,11 @@
<li class="public ">
<span class="summary_signature">
- <a href="#render_header-instance_method" title="#render_header (instance method)">#<strong>render_header</strong>(v) ⇒ Object </a>
+ <a href="#render_header-instance_method" title="#render_header (instance method)">#<strong>render_header</strong>(val) ⇒ Object </a>
</span>
@@ -548,31 +549,33 @@
<tr>
<td>
<pre class="lines">
-173
-174
-175
-176
-177
-178
-179
-180
-181</pre>
+297
+298
+299
+300
+301
+302
+303
+304
+305
+306</pre>
</td>
<td>
- <pre class="code"><span class="info file"># File 'lib/term_utils/tab.rb', line 173</span>
+ <pre class="code"><span class="info file"># File 'lib/term_utils/tab.rb', line 297</span>
<span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span><span class='lparen'>(</span><span class='id identifier rubyid_opts'>opts</span> <span class='op'>=</span> <span class='lbrace'>{</span><span class='rbrace'>}</span><span class='rparen'>)</span>
<span class='ivar'>@id</span> <span class='op'>=</span> <span class='id identifier rubyid_opts'>opts</span><span class='period'>.</span><span class='id identifier rubyid_fetch'>fetch</span><span class='lparen'>(</span><span class='symbol'>:id</span><span class='rparen'>)</span>
<span class='ivar'>@index</span> <span class='op'>=</span> <span class='id identifier rubyid_opts'>opts</span><span class='period'>.</span><span class='id identifier rubyid_fetch'>fetch</span><span class='lparen'>(</span><span class='symbol'>:index</span><span class='rparen'>)</span>
<span class='ivar'>@width</span> <span class='op'>=</span> <span class='id identifier rubyid_opts'>opts</span><span class='period'>.</span><span class='id identifier rubyid_fetch'>fetch</span><span class='lparen'>(</span><span class='symbol'>:width</span><span class='comma'>,</span> <span class='int'>8</span><span class='rparen'>)</span>
<span class='ivar'>@align</span> <span class='op'>=</span> <span class='id identifier rubyid_opts'>opts</span><span class='period'>.</span><span class='id identifier rubyid_fetch'>fetch</span><span class='lparen'>(</span><span class='symbol'>:align</span><span class='comma'>,</span> <span class='symbol'>:left</span><span class='rparen'>)</span>
<span class='ivar'>@fixed</span> <span class='op'>=</span> <span class='id identifier rubyid_opts'>opts</span><span class='period'>.</span><span class='id identifier rubyid_fetch'>fetch</span><span class='lparen'>(</span><span class='symbol'>:fixed</span><span class='comma'>,</span> <span class='kw'>false</span><span class='rparen'>)</span>
<span class='ivar'>@ellipsis</span> <span class='op'>=</span> <span class='id identifier rubyid_opts'>opts</span><span class='period'>.</span><span class='id identifier rubyid_fetch'>fetch</span><span class='lparen'>(</span><span class='symbol'>:ellipsis</span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>?</span><span class='tstring_end'>"</span></span><span class='rparen'>)</span>
<span class='ivar'>@format</span> <span class='op'>=</span> <span class='id identifier rubyid_opts'>opts</span><span class='period'>.</span><span class='id identifier rubyid_fetch'>fetch</span><span class='lparen'>(</span><span class='symbol'>:format</span><span class='comma'>,</span> <span class='kw'>nil</span><span class='rparen'>)</span>
+ <span class='ivar'>@header</span> <span class='op'>=</span> <span class='const'><span class='object_link'><a href="../../TermUtils.html" title="TermUtils (module)">TermUtils</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="../Tab.html" title="TermUtils::Tab (module)">Tab</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="Header.html" title="TermUtils::Tab::Header (class)">Header</a></span></span><span class='period'>.</span><span class='id identifier rubyid_new'><span class='object_link'><a href="Header.html#initialize-instance_method" title="TermUtils::Tab::Header#initialize (method)">new</a></span></span><span class='lparen'>(</span><span class='symbol'>:title</span> <span class='op'>=></span> <span class='ivar'>@id</span><span class='period'>.</span><span class='id identifier rubyid_to_s'>to_s</span><span class='comma'>,</span> <span class='symbol'>:align</span> <span class='op'>=></span> <span class='ivar'>@align</span><span class='rparen'>)</span>
<span class='kw'>end</span></pre>
</td>
</tr>
</table>
</div>
@@ -626,16 +629,16 @@
<tr>
<td>
<pre class="lines">
-158
-159
-160</pre>
+280
+281
+282</pre>
</td>
<td>
- <pre class="code"><span class="info file"># File 'lib/term_utils/tab.rb', line 158</span>
+ <pre class="code"><span class="info file"># File 'lib/term_utils/tab.rb', line 280</span>
<span class='kw'>def</span> <span class='id identifier rubyid_align'>align</span>
<span class='ivar'>@align</span>
<span class='kw'>end</span></pre>
</td>
@@ -680,16 +683,16 @@
<tr>
<td>
<pre class="lines">
-162
-163
-164</pre>
+284
+285
+286</pre>
</td>
<td>
- <pre class="code"><span class="info file"># File 'lib/term_utils/tab.rb', line 162</span>
+ <pre class="code"><span class="info file"># File 'lib/term_utils/tab.rb', line 284</span>
<span class='kw'>def</span> <span class='id identifier rubyid_ellipsis'>ellipsis</span>
<span class='ivar'>@ellipsis</span>
<span class='kw'>end</span></pre>
</td>
@@ -734,16 +737,16 @@
<tr>
<td>
<pre class="lines">
-160
-161
-162</pre>
+282
+283
+284</pre>
</td>
<td>
- <pre class="code"><span class="info file"># File 'lib/term_utils/tab.rb', line 160</span>
+ <pre class="code"><span class="info file"># File 'lib/term_utils/tab.rb', line 282</span>
<span class='kw'>def</span> <span class='id identifier rubyid_fixed'>fixed</span>
<span class='ivar'>@fixed</span>
<span class='kw'>end</span></pre>
</td>
@@ -788,31 +791,31 @@
<tr>
<td>
<pre class="lines">
-164
-165
-166</pre>
+286
+287
+288</pre>
</td>
<td>
- <pre class="code"><span class="info file"># File 'lib/term_utils/tab.rb', line 164</span>
+ <pre class="code"><span class="info file"># File 'lib/term_utils/tab.rb', line 286</span>
<span class='kw'>def</span> <span class='id identifier rubyid_format'>format</span>
<span class='ivar'>@format</span>
<span class='kw'>end</span></pre>
</td>
</tr>
</table>
</div>
- <span id="id=-instance_method"></span>
+ <span id="header=-instance_method"></span>
<div class="method_details ">
- <h3 class="signature " id="id-instance_method">
+ <h3 class="signature " id="header-instance_method">
- #<strong>id</strong> ⇒ <tt>Symbol</tt>
+ #<strong>header</strong> ⇒ <tt><span class='object_link'><a href="Header.html" title="TermUtils::Tab::Header (class)">TermUtils::Tab::Header</a></span></tt>
@@ -828,11 +831,11 @@
<ul class="return">
<li>
- <span class='type'>(<tt>Symbol</tt>)</span>
+ <span class='type'>(<tt><span class='object_link'><a href="Header.html" title="TermUtils::Tab::Header (class)">TermUtils::Tab::Header</a></span></tt>)</span>
</li>
@@ -842,31 +845,31 @@
<tr>
<td>
<pre class="lines">
-152
-153
-154</pre>
+288
+289
+290</pre>
</td>
<td>
- <pre class="code"><span class="info file"># File 'lib/term_utils/tab.rb', line 152</span>
+ <pre class="code"><span class="info file"># File 'lib/term_utils/tab.rb', line 288</span>
-<span class='kw'>def</span> <span class='id identifier rubyid_id'>id</span>
- <span class='ivar'>@id</span>
+<span class='kw'>def</span> <span class='id identifier rubyid_header'>header</span>
+ <span class='ivar'>@header</span>
<span class='kw'>end</span></pre>
</td>
</tr>
</table>
</div>
- <span id="index=-instance_method"></span>
+ <span id="id=-instance_method"></span>
<div class="method_details ">
- <h3 class="signature " id="index-instance_method">
+ <h3 class="signature " id="id-instance_method">
- #<strong>index</strong> ⇒ <tt>Integer</tt>
+ #<strong>id</strong> ⇒ <tt>Symbol</tt>
@@ -882,11 +885,11 @@
<ul class="return">
<li>
- <span class='type'>(<tt>Integer</tt>)</span>
+ <span class='type'>(<tt>Symbol</tt>)</span>
</li>
@@ -896,31 +899,31 @@
<tr>
<td>
<pre class="lines">
-154
-155
-156</pre>
+274
+275
+276</pre>
</td>
<td>
- <pre class="code"><span class="info file"># File 'lib/term_utils/tab.rb', line 154</span>
+ <pre class="code"><span class="info file"># File 'lib/term_utils/tab.rb', line 274</span>
-<span class='kw'>def</span> <span class='id identifier rubyid_index'>index</span>
- <span class='ivar'>@index</span>
+<span class='kw'>def</span> <span class='id identifier rubyid_id'>id</span>
+ <span class='ivar'>@id</span>
<span class='kw'>end</span></pre>
</td>
</tr>
</table>
</div>
- <span id="width=-instance_method"></span>
+ <span id="index=-instance_method"></span>
<div class="method_details ">
- <h3 class="signature " id="width-instance_method">
+ <h3 class="signature " id="index-instance_method">
- #<strong>width</strong> ⇒ <tt>Integer</tt>
+ #<strong>index</strong> ⇒ <tt>Integer</tt>
@@ -950,73 +953,51 @@
<tr>
<td>
<pre class="lines">
-156
-157
-158</pre>
+276
+277
+278</pre>
</td>
<td>
- <pre class="code"><span class="info file"># File 'lib/term_utils/tab.rb', line 156</span>
+ <pre class="code"><span class="info file"># File 'lib/term_utils/tab.rb', line 276</span>
-<span class='kw'>def</span> <span class='id identifier rubyid_width'>width</span>
- <span class='ivar'>@width</span>
+<span class='kw'>def</span> <span class='id identifier rubyid_index'>index</span>
+ <span class='ivar'>@index</span>
<span class='kw'>end</span></pre>
</td>
</tr>
</table>
</div>
- </div>
-
-
- <div id="instance_method_details" class="method_details_list">
- <h2>Instance Method Details</h2>
-
-
- <div class="method_details first">
- <h3 class="signature first" id="align_cut-instance_method">
+
+ <span id="width=-instance_method"></span>
+ <div class="method_details ">
+ <h3 class="signature " id="width-instance_method">
- #<strong>align_cut</strong>(str) ⇒ <tt>String</tt>
+ #<strong>width</strong> ⇒ <tt>Integer</tt>
</h3><div class="docstring">
<div class="discussion">
-<p>Aligns and cuts a given string.</p>
-
</div>
</div>
<div class="tags">
- <p class="tag_title">Parameters:</p>
-<ul class="param">
- <li>
-
- <span class='name'>str</span>
-
-
- <span class='type'>(<tt>String</tt>)</span>
-
-
-
- </li>
-
-</ul>
-
<p class="tag_title">Returns:</p>
<ul class="return">
<li>
- <span class='type'>(<tt>String</tt>)</span>
+ <span class='type'>(<tt>Integer</tt>)</span>
</li>
@@ -1026,59 +1007,36 @@
<tr>
<td>
<pre class="lines">
-197
-198
-199
-200
-201
-202
-203
-204
-205
-206
-207
-208
-209
-210
-211
-212
-213
-214</pre>
+278
+279
+280</pre>
</td>
<td>
- <pre class="code"><span class="info file"># File 'lib/term_utils/tab.rb', line 197</span>
+ <pre class="code"><span class="info file"># File 'lib/term_utils/tab.rb', line 278</span>
-<span class='kw'>def</span> <span class='id identifier rubyid_align_cut'>align_cut</span><span class='lparen'>(</span><span class='id identifier rubyid_str'>str</span><span class='rparen'>)</span>
- <span class='kw'>if</span> <span class='ivar'>@align</span> <span class='op'>==</span> <span class='symbol'>:left</span>
- <span class='comment'># Align left
-</span> <span class='kw'>if</span> <span class='ivar'>@fixed</span> <span class='kw'>and</span> <span class='lparen'>(</span><span class='id identifier rubyid_str'>str</span><span class='period'>.</span><span class='id identifier rubyid_length'>length</span> <span class='op'>></span> <span class='ivar'>@width</span><span class='rparen'>)</span>
- <span class='id identifier rubyid_str'>str</span> <span class='op'>=</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_str'>str</span><span class='lbracket'>[</span><span class='int'>0</span><span class='op'>..</span><span class='lparen'>(</span><span class='ivar'>@width</span> <span class='op'>-</span> <span class='lparen'>(</span><span class='ivar'>@ellipsis</span><span class='period'>.</span><span class='id identifier rubyid_length'>length</span> <span class='op'>+</span> <span class='int'>1</span><span class='rparen'>)</span><span class='rparen'>)</span><span class='rbracket'>]</span><span class='embexpr_end'>}</span><span class='embexpr_beg'>#{</span><span class='ivar'>@ellipsis</span><span class='embexpr_end'>}</span><span class='tstring_end'>"</span></span>
- <span class='kw'>else</span>
- <span class='id identifier rubyid_str'>str</span> <span class='op'>=</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>%-*s</span><span class='tstring_end'>"</span></span> <span class='op'>%</span> <span class='lbracket'>[</span><span class='ivar'>@width</span><span class='comma'>,</span> <span class='id identifier rubyid_str'>str</span><span class='rbracket'>]</span>
- <span class='kw'>end</span>
- <span class='kw'>else</span>
- <span class='comment'># Align right
-</span> <span class='kw'>if</span> <span class='ivar'>@fixed</span> <span class='kw'>and</span> <span class='lparen'>(</span><span class='id identifier rubyid_str'>str</span><span class='period'>.</span><span class='id identifier rubyid_length'>length</span> <span class='op'>></span> <span class='ivar'>@width</span><span class='rparen'>)</span>
- <span class='id identifier rubyid_str'>str</span> <span class='op'>=</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='embexpr_beg'>#{</span><span class='ivar'>@ellipsis</span><span class='embexpr_end'>}</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_str'>str</span><span class='lbracket'>[</span><span class='lparen'>(</span><span class='id identifier rubyid_str'>str</span><span class='period'>.</span><span class='id identifier rubyid_length'>length</span> <span class='op'>-</span> <span class='ivar'>@width</span> <span class='op'>+</span> <span class='ivar'>@ellipsis</span><span class='period'>.</span><span class='id identifier rubyid_length'>length</span><span class='rparen'>)</span><span class='op'>..</span><span class='lparen'>(</span><span class='id identifier rubyid_str'>str</span><span class='period'>.</span><span class='id identifier rubyid_length'>length</span> <span class='op'>-</span> <span class='int'>1</span><span class='rparen'>)</span><span class='rbracket'>]</span><span class='embexpr_end'>}</span><span class='tstring_end'>"</span></span>
- <span class='kw'>else</span>
- <span class='id identifier rubyid_str'>str</span> <span class='op'>=</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>%*s</span><span class='tstring_end'>"</span></span> <span class='op'>%</span> <span class='lbracket'>[</span><span class='ivar'>@width</span><span class='comma'>,</span> <span class='id identifier rubyid_str'>str</span><span class='rbracket'>]</span>
- <span class='kw'>end</span>
- <span class='kw'>end</span>
- <span class='id identifier rubyid_str'>str</span>
+<span class='kw'>def</span> <span class='id identifier rubyid_width'>width</span>
+ <span class='ivar'>@width</span>
<span class='kw'>end</span></pre>
</td>
</tr>
</table>
</div>
- <div class="method_details ">
- <h3 class="signature " id="render_data-instance_method">
+ </div>
+
+
+ <div id="instance_method_details" class="method_details_list">
+ <h2>Instance Method Details</h2>
+
+
+ <div class="method_details first">
+ <h3 class="signature first" id="render_data-instance_method">
- #<strong>render_data</strong>(v) ⇒ <tt>Object</tt>
+ #<strong>render_data</strong>(val) ⇒ <tt>Object</tt>
@@ -1094,11 +1052,11 @@
<p class="tag_title">Parameters:</p>
<ul class="param">
<li>
- <span class='name'>v</span>
+ <span class='name'>val</span>
<span class='type'>(<tt>Object</tt>)</span>
@@ -1112,47 +1070,47 @@
<tr>
<td>
<pre class="lines">
-226
-227
-228
-229
-230
-231
-232
-233
-234
-235
-236
-237</pre>
+331
+332
+333
+334
+335
+336
+337
+338
+339
+340
+341
+342</pre>
</td>
<td>
- <pre class="code"><span class="info file"># File 'lib/term_utils/tab.rb', line 226</span>
+ <pre class="code"><span class="info file"># File 'lib/term_utils/tab.rb', line 331</span>
-<span class='kw'>def</span> <span class='id identifier rubyid_render_data'>render_data</span><span class='lparen'>(</span><span class='id identifier rubyid_v'>v</span><span class='rparen'>)</span>
- <span class='id identifier rubyid_str'>str</span> <span class='op'>=</span> <span class='id identifier rubyid_v'>v</span>
- <span class='kw'>if</span> <span class='id identifier rubyid_v'>v</span>
+<span class='kw'>def</span> <span class='id identifier rubyid_render_data'>render_data</span><span class='lparen'>(</span><span class='id identifier rubyid_val'>val</span><span class='rparen'>)</span>
+ <span class='id identifier rubyid_src'>src</span> <span class='op'>=</span> <span class='id identifier rubyid_val'>val</span>
+ <span class='kw'>if</span> <span class='id identifier rubyid_val'>val</span>
<span class='kw'>if</span> <span class='ivar'>@format</span><span class='period'>.</span><span class='id identifier rubyid_is_a?'>is_a?</span> <span class='const'>Proc</span>
- <span class='id identifier rubyid_str'>str</span> <span class='op'>=</span> <span class='ivar'>@format</span><span class='period'>.</span><span class='id identifier rubyid_call'>call</span><span class='lparen'>(</span><span class='id identifier rubyid_v'>v</span><span class='rparen'>)</span>
+ <span class='id identifier rubyid_src'>src</span> <span class='op'>=</span> <span class='ivar'>@format</span><span class='period'>.</span><span class='id identifier rubyid_call'>call</span><span class='lparen'>(</span><span class='id identifier rubyid_val'>val</span><span class='rparen'>)</span>
<span class='kw'>elsif</span> <span class='ivar'>@format</span><span class='period'>.</span><span class='id identifier rubyid_is_a?'>is_a?</span> <span class='const'>String</span>
- <span class='id identifier rubyid_str'>str</span> <span class='op'>=</span> <span class='ivar'>@format</span> <span class='op'>%</span> <span class='id identifier rubyid_v'>v</span>
+ <span class='id identifier rubyid_src'>src</span> <span class='op'>=</span> <span class='ivar'>@format</span> <span class='op'>%</span> <span class='id identifier rubyid_val'>val</span>
<span class='kw'>end</span>
<span class='kw'>end</span>
- <span class='id identifier rubyid_str'>str</span> <span class='op'>=</span> <span class='id identifier rubyid_str'>str</span><span class='period'>.</span><span class='id identifier rubyid_to_s'>to_s</span> <span class='kw'>unless</span> <span class='id identifier rubyid_str'>str</span><span class='period'>.</span><span class='id identifier rubyid_is_a?'>is_a?</span> <span class='const'>String</span>
- <span class='id identifier rubyid_align_cut'>align_cut</span> <span class='id identifier rubyid_str'>str</span>
+ <span class='id identifier rubyid_src'>src</span> <span class='op'>=</span> <span class='lparen'>(</span><span class='id identifier rubyid_src'>src</span><span class='period'>.</span><span class='id identifier rubyid_is_a?'>is_a?</span> <span class='const'>String</span><span class='rparen'>)</span> <span class='op'>?</span> <span class='id identifier rubyid_src'>src</span> <span class='op'>:</span> <span class='id identifier rubyid_src'>src</span><span class='period'>.</span><span class='id identifier rubyid_to_s'>to_s</span>
+ <span class='const'><span class='object_link'><a href="../../TermUtils.html" title="TermUtils (module)">TermUtils</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="../Tab.html" title="TermUtils::Tab (module)">Tab</a></span></span><span class='period'>.</span><span class='id identifier rubyid_align_cut'><span class='object_link'><a href="../Tab.html#align_cut-class_method" title="TermUtils::Tab.align_cut (method)">align_cut</a></span></span><span class='lparen'>(</span><span class='id identifier rubyid_src'>src</span><span class='comma'>,</span> <span class='ivar'>@align</span><span class='comma'>,</span> <span class='ivar'>@fixed</span><span class='comma'>,</span> <span class='ivar'>@width</span><span class='comma'>,</span> <span class='ivar'>@ellipsis</span><span class='rparen'>)</span>
<span class='kw'>end</span></pre>
</td>
</tr>
</table>
</div>
<div class="method_details ">
<h3 class="signature " id="render_header-instance_method">
- #<strong>render_header</strong>(v) ⇒ <tt>Object</tt>
+ #<strong>render_header</strong>(val) ⇒ <tt>Object</tt>
@@ -1168,11 +1126,11 @@
<p class="tag_title">Parameters:</p>
<ul class="param">
<li>
- <span class='name'>v</span>
+ <span class='name'>val</span>
<span class='type'>(<tt>Object</tt>)</span>
@@ -1186,23 +1144,21 @@
<tr>
<td>
<pre class="lines">
-218
-219
-220
-221
-222</pre>
+324
+325
+326
+327</pre>
</td>
<td>
- <pre class="code"><span class="info file"># File 'lib/term_utils/tab.rb', line 218</span>
+ <pre class="code"><span class="info file"># File 'lib/term_utils/tab.rb', line 324</span>
-<span class='kw'>def</span> <span class='id identifier rubyid_render_header'>render_header</span><span class='lparen'>(</span><span class='id identifier rubyid_v'>v</span><span class='rparen'>)</span>
- <span class='id identifier rubyid_str'>str</span> <span class='op'>=</span> <span class='id identifier rubyid_v'>v</span>
- <span class='id identifier rubyid_str'>str</span> <span class='op'>=</span> <span class='id identifier rubyid_str'>str</span><span class='period'>.</span><span class='id identifier rubyid_to_s'>to_s</span> <span class='kw'>unless</span> <span class='id identifier rubyid_str'>str</span><span class='period'>.</span><span class='id identifier rubyid_is_a?'>is_a?</span> <span class='const'>String</span>
- <span class='id identifier rubyid_align_cut'>align_cut</span> <span class='id identifier rubyid_str'>str</span>
+<span class='kw'>def</span> <span class='id identifier rubyid_render_header'>render_header</span><span class='lparen'>(</span><span class='id identifier rubyid_val'>val</span><span class='rparen'>)</span>
+ <span class='id identifier rubyid_src'>src</span> <span class='op'>=</span> <span class='lparen'>(</span><span class='id identifier rubyid_val'>val</span><span class='period'>.</span><span class='id identifier rubyid_is_a?'>is_a?</span> <span class='const'>String</span><span class='rparen'>)</span> <span class='op'>?</span> <span class='id identifier rubyid_val'>val</span> <span class='op'>:</span> <span class='id identifier rubyid_val'>val</span><span class='period'>.</span><span class='id identifier rubyid_to_s'>to_s</span>
+ <span class='const'><span class='object_link'><a href="../../TermUtils.html" title="TermUtils (module)">TermUtils</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="../Tab.html" title="TermUtils::Tab (module)">Tab</a></span></span><span class='period'>.</span><span class='id identifier rubyid_align_cut'><span class='object_link'><a href="../Tab.html#align_cut-class_method" title="TermUtils::Tab.align_cut (method)">align_cut</a></span></span><span class='lparen'>(</span><span class='id identifier rubyid_src'>src</span><span class='comma'>,</span> <span class='ivar'>@header</span><span class='period'>.</span><span class='id identifier rubyid_align'>align</span><span class='comma'>,</span> <span class='ivar'>@fixed</span><span class='comma'>,</span> <span class='ivar'>@width</span><span class='comma'>,</span> <span class='ivar'>@ellipsis</span><span class='rparen'>)</span>
<span class='kw'>end</span></pre>
</td>
</tr>
</table>
</div>
@@ -1237,40 +1193,55 @@
</li>
</ul>
+<p class="tag_title">Raises:</p>
+<ul class="raise">
+
+ <li>
+
+
+ <span class='type'>(<tt><span class='object_link'><a href="TableError.html" title="TermUtils::Tab::TableError (class)">TermUtils::Tab::TableError</a></span></tt>)</span>
+
+
+
+ </li>
+
+</ul>
</div><table class="source_code">
<tr>
<td>
<pre class="lines">
-184
-185
-186
-187
-188
-189
-190
-191
-192
-193</pre>
+310
+311
+312
+313
+314
+315
+316
+317
+318
+319
+320</pre>
</td>
<td>
- <pre class="code"><span class="info file"># File 'lib/term_utils/tab.rb', line 184</span>
+ <pre class="code"><span class="info file"># File 'lib/term_utils/tab.rb', line 310</span>
<span class='kw'>def</span> <span class='id identifier rubyid_validate'>validate</span>
- <span class='id identifier rubyid_raise'>raise</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>missing column id (nil)</span><span class='tstring_end'>"</span></span> <span class='kw'>if</span> <span class='ivar'>@id</span><span class='period'>.</span><span class='id identifier rubyid_nil?'>nil?</span>
- <span class='id identifier rubyid_raise'>raise</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>missing column index (nil)</span><span class='tstring_end'>"</span></span> <span class='kw'>if</span> <span class='ivar'>@index</span><span class='period'>.</span><span class='id identifier rubyid_nil?'>nil?</span>
- <span class='id identifier rubyid_raise'>raise</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>wrong column index (not integer)</span><span class='tstring_end'>"</span></span> <span class='kw'>unless</span> <span class='ivar'>@index</span><span class='period'>.</span><span class='id identifier rubyid_is_a?'>is_a?</span> <span class='const'>Integer</span>
- <span class='id identifier rubyid_raise'>raise</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>wrong column index (not >= 0)</span><span class='tstring_end'>"</span></span> <span class='kw'>if</span> <span class='ivar'>@index</span> <span class='op'><</span> <span class='int'>0</span>
- <span class='id identifier rubyid_raise'>raise</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>missing column width (nil)</span><span class='tstring_end'>"</span></span> <span class='kw'>if</span> <span class='ivar'>@width</span><span class='period'>.</span><span class='id identifier rubyid_nil?'>nil?</span>
- <span class='id identifier rubyid_raise'>raise</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>wrong column width (not integer)</span><span class='tstring_end'>"</span></span> <span class='kw'>unless</span> <span class='ivar'>@width</span><span class='period'>.</span><span class='id identifier rubyid_is_a?'>is_a?</span> <span class='const'>Integer</span>
- <span class='id identifier rubyid_raise'>raise</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>wrong column width (not > 0)</span><span class='tstring_end'>"</span></span> <span class='kw'>if</span> <span class='ivar'>@width</span> <span class='op'><=</span> <span class='int'>0</span>
- <span class='id identifier rubyid_raise'>raise</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>wrong column align (not :left or :right)</span><span class='tstring_end'>"</span></span> <span class='kw'>unless</span> <span class='qsymbols_beg'>%i{</span><span class='tstring_content'>left</span><span class='words_sep'> </span><span class='tstring_content'>right</span><span class='tstring_end'>}</span></span><span class='period'>.</span><span class='id identifier rubyid_index'>index</span> <span class='ivar'>@align</span>
+ <span class='id identifier rubyid_raise'>raise</span> <span class='const'><span class='object_link'><a href="../../TermUtils.html" title="TermUtils (module)">TermUtils</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="../Tab.html" title="TermUtils::Tab (module)">Tab</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="TableError.html" title="TermUtils::Tab::TableError (class)">TableError</a></span></span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>missing column id (nil)</span><span class='tstring_end'>"</span></span> <span class='kw'>if</span> <span class='ivar'>@id</span><span class='period'>.</span><span class='id identifier rubyid_nil?'>nil?</span>
+ <span class='id identifier rubyid_raise'>raise</span> <span class='const'><span class='object_link'><a href="../../TermUtils.html" title="TermUtils (module)">TermUtils</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="../Tab.html" title="TermUtils::Tab (module)">Tab</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="TableError.html" title="TermUtils::Tab::TableError (class)">TableError</a></span></span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>missing column index (nil)</span><span class='tstring_end'>"</span></span> <span class='kw'>if</span> <span class='ivar'>@index</span><span class='period'>.</span><span class='id identifier rubyid_nil?'>nil?</span>
+ <span class='id identifier rubyid_raise'>raise</span> <span class='const'><span class='object_link'><a href="../../TermUtils.html" title="TermUtils (module)">TermUtils</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="../Tab.html" title="TermUtils::Tab (module)">Tab</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="TableError.html" title="TermUtils::Tab::TableError (class)">TableError</a></span></span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>wrong column index (not integer)</span><span class='tstring_end'>"</span></span> <span class='kw'>unless</span> <span class='ivar'>@index</span><span class='period'>.</span><span class='id identifier rubyid_is_a?'>is_a?</span> <span class='const'>Integer</span>
+ <span class='id identifier rubyid_raise'>raise</span> <span class='const'><span class='object_link'><a href="../../TermUtils.html" title="TermUtils (module)">TermUtils</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="../Tab.html" title="TermUtils::Tab (module)">Tab</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="TableError.html" title="TermUtils::Tab::TableError (class)">TableError</a></span></span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>wrong column index (not >= 0)</span><span class='tstring_end'>"</span></span> <span class='kw'>if</span> <span class='ivar'>@index</span> <span class='op'><</span> <span class='int'>0</span>
+ <span class='id identifier rubyid_raise'>raise</span> <span class='const'><span class='object_link'><a href="../../TermUtils.html" title="TermUtils (module)">TermUtils</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="../Tab.html" title="TermUtils::Tab (module)">Tab</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="TableError.html" title="TermUtils::Tab::TableError (class)">TableError</a></span></span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>missing column width (nil)</span><span class='tstring_end'>"</span></span> <span class='kw'>if</span> <span class='ivar'>@width</span><span class='period'>.</span><span class='id identifier rubyid_nil?'>nil?</span>
+ <span class='id identifier rubyid_raise'>raise</span> <span class='const'><span class='object_link'><a href="../../TermUtils.html" title="TermUtils (module)">TermUtils</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="../Tab.html" title="TermUtils::Tab (module)">Tab</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="TableError.html" title="TermUtils::Tab::TableError (class)">TableError</a></span></span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>wrong column width (not integer)</span><span class='tstring_end'>"</span></span> <span class='kw'>unless</span> <span class='ivar'>@width</span><span class='period'>.</span><span class='id identifier rubyid_is_a?'>is_a?</span> <span class='const'>Integer</span>
+ <span class='id identifier rubyid_raise'>raise</span> <span class='const'><span class='object_link'><a href="../../TermUtils.html" title="TermUtils (module)">TermUtils</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="../Tab.html" title="TermUtils::Tab (module)">Tab</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="TableError.html" title="TermUtils::Tab::TableError (class)">TableError</a></span></span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>wrong column width (not > 0)</span><span class='tstring_end'>"</span></span> <span class='kw'>if</span> <span class='ivar'>@width</span> <span class='op'><=</span> <span class='int'>0</span>
+ <span class='id identifier rubyid_raise'>raise</span> <span class='const'><span class='object_link'><a href="../../TermUtils.html" title="TermUtils (module)">TermUtils</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="../Tab.html" title="TermUtils::Tab (module)">Tab</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="TableError.html" title="TermUtils::Tab::TableError (class)">TableError</a></span></span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>wrong column align (not :left or :right)</span><span class='tstring_end'>"</span></span> <span class='kw'>unless</span> <span class='qsymbols_beg'>%i[</span><span class='tstring_content'>left</span><span class='words_sep'> </span><span class='tstring_content'>right</span><span class='tstring_end'>]</span></span><span class='period'>.</span><span class='id identifier rubyid_index'>index</span><span class='lparen'>(</span><span class='ivar'>@align</span><span class='rparen'>)</span>
+ <span class='ivar'>@header</span><span class='period'>.</span><span class='id identifier rubyid_validate'>validate</span>
<span class='kw'>end</span></pre>
</td>
</tr>
</table>
</div>
@@ -1278,10 +1249,10 @@
</div>
</div>
<div id="footer">
- Generated on Sun Nov 10 18:36:19 2019 by
+ Generated on Sat Nov 16 17:06:15 2019 by
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
0.9.20 (ruby-2.6.5).
</div>
</div>
\ No newline at end of file